googol = 10 ** 100 googolplex = 10 ** googol
This should work in every version of Python. It makes the program completely stop working because it doesn't have the ability to hold a number that large! Works best in the interactive shell.
I am not responsible for any damage to your computer, not that this should do any.
Offline
Ok Harakou, your sig is freaking me out. Like, inappropriate for me bad.

Offline
Harakou wrote:
Googol is a system-defined constant in Python?
I think googol would be a variable, but I never studied python, so I wouldn't know...
Because I'm pretty sure he's defining "googol" in googol = 10 ** 100...
Offline
kayybee wrote:
Harakou wrote:
Googol is a system-defined constant in Python?
I think googol would be a variable, but I never studied python, so I wouldn't know...
Because I'm pretty sure he's defining "googol" in googol = 10 ** 100...
Somehow I missed the 10 ** 100...
I really need to stop skimming things.
Offline
How about:
num = 2
while num > 0:
num *= num
print(num)
Last edited by randomnumber53 (2011-09-06 23:09:32)
Offline
Ogh my god NO!!!!!!!!!!!!!!!!!!!!!!!!! Harakou has tuned into a bronie, Hes been INFECTED
Offline
4lover wrote:
Ogh my god NO!!!!!!!!!!!!!!!!!!!!!!!!! Harakou has tuned into a bronie, Hes been INFECTED
The Scratch community has known I'm a brony for a long time bro.
On a very serious note though, please don't be hateful towards bronies or anyone else with interests different than yours; it's completely unnecessary and leads only to arguments.
Offline
Harakou wrote:
randomnumber53 wrote:
How about:
Code:
num = 2 while num > 0: num *= num print(num)
![]()
That'll just keep multiplying the number until you force close the program, since "num > 0" will always be true.
![]()
Exactly
Last edited by randomnumber53 (2011-09-06 23:16:09)
Offline
Harakou wrote:
4lover wrote:
Ogh my god NO!!!!!!!!!!!!!!!!!!!!!!!!! Harakou has tuned into a bronie, Hes been INFECTED
The Scratch community has known I'm a brony for a long time bro.
Please don't be hateful towards bronies or anyone else with interests different than yours; it's completely unnecessary and leads only to arguments.
Sorry man I havent really known ya cause I voted in the mod elections but right after that I quit and just recently I came back
Offline