User blog comment:MachineGunSuper/My challenge to type a googolplex on a computer (copy/paste)/@comment-30754445-20171230174622/@comment-30754445-20171231094908

You can do exactly the same thing in BASIC:

10 A$="0"

20 FOR I=1 TO 100

30 A$=A$+A$+A$+A$+A$+A$+A$+A$+A$+A$

40 NEXT I

50 PRINT "1"+A$

The only problem is that these programs (both yours and the one I've given here) won't work on an actual physical computer. It will run out of memory before it prints a single digit.

My other program, on the other hand, starts printing immediately. It actually does the job in the real world (even though the job can never be finished). And if you translated that program into Python, it would be much shorter because you could do it with a single loop variable that runs from 1 to 10^100.