Skip to content

Instantly share code, notes, and snippets.

@timotree3
Created February 12, 2016 18:16
Show Gist options
  • Save timotree3/16bf14b027e571c9ef91 to your computer and use it in GitHub Desktop.
Save timotree3/16bf14b027e571c9ef91 to your computer and use it in GitHub Desktop.
Crash python
infilist=["I AM CRASH"]
message='Crashing... Please wait.'
def crash():
global message
global infilist
templist = []
for element in infilist:
templist.append(element)
infilist.append(templist)
print(message)
while(True):
try:
crash()
except RecursionError:
message='Almost...'
message = input("Would you like to be crashed? Y/N")*10
crash()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment