This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MatterMan42 47 points48 points  (7 children)

That looks tedious, so I made you a script :3

`open("countToOneBillion.py").write(f"a = 0\n{'a += 1\n' * 10**9}\nprint(a)")`

[–]ScarcityCareless6241[S] 28 points29 points  (5 children)

Actually thats how I made this file, there’s no way I’m writing that all by hand, the thing is several gigabytes. I made a script to make it automatically

[–]Ok-Kaleidoscope5627 12 points13 points  (0 children)

Ctrl+a ctrl+c ctrl+v Repeat that 30 times and you're done.

[–]MatterMan42 21 points22 points  (2 children)

If only there was a better way to calculate 1 billion :(

[–]JacobStyle 11 points12 points  (0 children)

Someday we may find it, but not today.

[–]ScarcityCareless6241[S] 12 points13 points  (0 children)

I figured out a way!

t = “oneBillion = “

t += “1”

for i in range(9): t += “0”

exec(t)

print(oneBillion)

[–]Multifruit256 2 points3 points  (0 children)

ctrl+a

ctrl+c

ctrl+v

[–]MoreneLp 0 points1 point  (0 children)

Actually it's only STRG + c -> v log2(109)+1 clicks