|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
looping scripts
i want to know how to loop this script to make it show the raw_input again:
Code:
#############################
#############################
#Name-a-tron#
#############################
#############################
nom = raw_input("What the devil is your name?(please print full name)")
if nom == "Kent Mcrae":
print """ Start a fire, not just any fire, a gas fire, or an electrical fire.
Wait! you should burn down a house. WEEEEEEEEEEEEEEEE Fire!!"""
if nom == "Dane Mcrae":
print "Hey!Hey!Hey!Face!hehehehehehehehehehe"
if nom == "Conrad Porter":
print "Sick! I pity you. Just kidding(or am i?)."
if nom == "Dylan Moore":
print "I'm Dylan.Not you. Shut-Up!. Blarghh."
if nom == "Tadas the Fag":
print "Your a faggot. Yah you heard me. Vocab!Fag!MJ lover!"
if nom == "Prof. Tor Coolguy":
print "No your not! That's Strong Bad's alias! I mean.... Shut up!"
if nom == "Evil Amoeba":
print "Haha! I don't know your real name... Damn."
if nom == "Arthur Butcher":
print "Mini-cans of Pepsi!! Wow..."
if not nom:
print "Haha, your name sucks so bad, I DON'T EVEN WANT TO MAKE A WITTY COMEBACK FOR IT!"
any suggestions? |
|
#2
|
||||
|
||||
|
Code:
while True:
name = raw_input("What is your name?(please print full name)")
if name == "xlordt":
print "sup sup tkd"
if name in 'q':
print 'Good Bye'
break
__________________
IE QUOTE | PHP Manual | Google | C/C++ Compiler | Linux Tutorials | General Stuff Game Dev |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > looping scripts |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|