Why is it crashing? (newbie)
MontrezVosSeins
smouttebolleke at hotmail.com
Sun Jul 7 11:45:55 EDT 2002
"Charles Mantha" <charles_mantha at hotmail.com> wrote in message news:
>
> menu()
> menu_choice = int(raw_input("Choose one of the options: ")),
> while menu_choice != 3:
> if menu_choice == 1:
> run_test(get_questions())
Maybe this should do it,
menu()
menu_choice = input("Choose one of the options: ")
if menu_choice == 1:
run_test(get_questions())
elif menu_choice == 2:
....
elif menu_choice == 3:
print "Bye"
else:
print "Whoops, you have made a mistake! Try again."
menu()
More information about the Python-list
mailing list