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?
4 Antworten
+ 3
Can you save your code to the playground and post a link here? That makes it easy to discuss and experiment with.
+ 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)
0
which framework are you using?
share relevant code?
0