[Tutor] Input handling?
Scott Yamamoto
scott.yamamoto at yahoo.com
Tue Sep 18 06:19:41 CEST 2012
2.7.2 on python for ios(platform is darwin)
problem reoccured
Script:
import random
username = ""
def playername():
global username
Mlist = ["name1","name2","name3"]
Flist = ["name4","name5", "name6"]
Llist = ["Lname1","Lname2","Lname3"]
username = raw_input("input your desired username: ")
if username == "":
username = random.choice(Mlist) + " " + random.choice(Llist)
playername()
Doesnt return the error during run
Attempting implementation of try results in indentation errors in later lines
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120917/37427173/attachment.html>
More information about the Tutor
mailing list