1 2 3 4 5 6 7
while True: promt = "print command > " try: string = raw_input(promt) except : string = input(promt) print ("command was " + string)