+ 1

Help me plz!!?

https://code.sololearn.com/coEktd92PFv6/?ref=app I want it so that if the item is present in the list it will print ok

16th Sep 2022, 4:31 PM
Kaushik
Kaushik - avatar
1 Answer
+ 6
data = {"Rollno":[5,6,7,8,9]} p = int(input("here: ")) # should be integer # p in dict, not the other way around if p in data['Rollno']: print(p) else: print('no')
16th Sep 2022, 4:43 PM
Lisa
Lisa - avatar