You are viewing a single comment's thread. Return to all comments →
what's te problem wit mine here
x=int(input()) temp='' book=[input().split() for i in range(0,x)] sea=0 while True: temp=str(input()) sea=0 if temp!="": for z in range(0,len(book)): if temp in book[z][0]: print(book[z][0]+'='+book[z][1]) sea=1 break elif sea==0 and z==(len(book)-1): print('Not found') else: break x=int(input()) temp='' book=[input().split() for i in range(0,x)] sea=0 while True: temp=str(input()) sea=0 if temp!="": for z in range(0,len(book)): if temp in book[z][0]: print(book[z][0]+'='+book[z][1]) sea=1 break elif sea==0 and z==(len(book)-1): print('Not found') else: break
Seems like cookies are disabled on this browser, please enable them to open this website
Day 8: Dictionaries and Maps
You are viewing a single comment's thread. Return to all comments →
what's te problem wit mine here