python - While loop does not continue to If statement -


i'm new python , trying figure out why program not run past initial input. works fine until input number. goes beginning of program. looped statement looks follows:

 loop = 1  choice = 0  while loop == 1:      choice = menu()      if choice == 1:         (list of commands)      elif choice == 2:         (list of commands)  etc...      elif choice == 5:         loop = 0 

i'm big noob bet ridiculous question i'm stumped!

typeerror: can't multiply sequence non-int of type 'str' mean multiply '5'*'5', str not int 5*5.

and '1'+'1' = '11' 1 + 1 = 2

so should change str int


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -