0

How can i create a more than 10 options selection menu in python?

i am creating an options menu but have more than 10 options and it doesnt work. Suggestions?

2nd Aug 2018, 2:11 AM
Jimmy Mathis
Jimmy Mathis - avatar
4 Answers
+ 3
Can you save your code to the playground and post a link here? That makes it easy to discuss and experiment with.
2nd Aug 2018, 4:37 AM
David Ashton
David Ashton - avatar
+ 1
sir help me this code: x={"what is national flower":['rose','lotus','jasmine'], "what is national river":['krishna','ganga','godawari'], "what is national bird":['peacock','crow','sparrow'], "what is national animal":['goat','lion','tiger'] } key =(2,2,1,3) index = 0 score = 0 for i,j in (x.items()): print(i) for n,m in enumerate(j): print(n+1,".",m) ans = int (nput(" enter your chioce ")) if ans == key[index]: score=score+1 index=index+1 print("your score is :",score)
5th Aug 2018, 6:25 AM
Rahul verma
0
which framework are you using? share relevant code?
2nd Aug 2018, 6:20 AM
Markus Kaleton
Markus Kaleton - avatar
5th Aug 2018, 7:50 AM
Jimmy Mathis
Jimmy Mathis - avatar