Untitled
unknown
plain_text
2 years ago
320 B
13
Indexable
info={}
mas=""
while mas!="q":
ans=input("enter the key: ")
if ans.lower()=="age" or ans=="level":
info[ans]=int(input("enter the value as number : "))
else:
info[ans]=input("enter the value: ")
mas=input("if you want exit enter 'q' or pass enter to continue : ")
print(info)Editor is loading...
Leave a Comment