This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-09-06 14:51:34

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

How to Make Python Crash

Code:

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

 

#2 2011-09-06 15:07:59

Barf_Bag
Scratcher
Registered: 2011-07-10
Posts: 100+

Re: How to Make Python Crash

Wow. That's pretty intense.


http://i56.tinypic.com/33tiavp.png

Offline

 

#3 2011-09-06 21:33:28

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to Make Python Crash

Googol is a system-defined constant in Python?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#4 2011-09-06 21:37:54

rabbit1131
Scratcher
Registered: 2009-10-16
Posts: 1000+

Re: How to Make Python Crash

Ok Harakou, your sig is freaking me out. Like, inappropriate for me bad.


The Intergalactic Adventures of Revesilia! I hope you will partake in this gigantic undertaking, to build the sequel to the hit map The Adventures of Revesilia! The Intergalactic Adventures of Revesilia Map Builders Application thread! http://internetometer.com/image/35004.png

Offline

 

#5 2011-09-06 21:40:17

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: How to Make Python Crash

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

 

#6 2011-09-06 21:48:46

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to Make Python Crash

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...

http://i.imgur.com/qNMy8.jpg

I really need to stop skimming things.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#7 2011-09-06 23:09:15

randomnumber53
Scratcher
Registered: 2010-05-19
Posts: 500+

Re: How to Make Python Crash

How about:

Code:

num = 2
while num > 0:
      num *= num
      print(num)

smile

Last edited by randomnumber53 (2011-09-06 23:09:32)


http://i1095.photobucket.com/albums/i477/randomnumber53/addForSig.png
http://www.prguitarman.com/icon/poptartFINALTINY.gif`·.,¸,.·*¯`·.,¸,.·*¯[;::;‹]ᵒᴥᵒ­­­­­­­­­­)  Don't forget to add the +KITTENS

Offline

 

#8 2011-09-06 23:11:10

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to Make Python Crash

randomnumber53 wrote:

How about:

Code:

num = 2
while num > 0:
      num *= num
      print(num)

smile

That'll just keep multiplying the number until you force close the program, since "num > 0" will always be true.  hmm


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#9 2011-09-06 23:11:33

4lover
Scratcher
Registered: 2010-04-24
Posts: 500+

Re: How to Make Python Crash

Ogh my god NO!!!!!!!!!!!!!!!!!!!!!!!!! Harakou has tuned into a bronie, Hes been INFECTED


Check out this awesome new zombie-cod type of game: http://scratch.mit.edu/projects/4lover/1975649

Offline

 

#10 2011-09-06 23:15:30

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: How to Make Python Crash

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.  wink

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.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

#11 2011-09-06 23:15:54

randomnumber53
Scratcher
Registered: 2010-05-19
Posts: 500+

Re: How to Make Python Crash

Harakou wrote:

randomnumber53 wrote:

How about:

Code:

num = 2
while num > 0:
      num *= num
      print(num)

smile

That'll just keep multiplying the number until you force close the program, since "num > 0" will always be true.  hmm

Exactly  tongue

Last edited by randomnumber53 (2011-09-06 23:16:09)


http://i1095.photobucket.com/albums/i477/randomnumber53/addForSig.png
http://www.prguitarman.com/icon/poptartFINALTINY.gif`·.,¸,.·*¯`·.,¸,.·*¯[;::;‹]ᵒᴥᵒ­­­­­­­­­­)  Don't forget to add the +KITTENS

Offline

 

#12 2011-09-06 23:17:17

4lover
Scratcher
Registered: 2010-04-24
Posts: 500+

Re: How to Make Python Crash

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.  wink  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


Check out this awesome new zombie-cod type of game: http://scratch.mit.edu/projects/4lover/1975649

Offline

 

Board footer