+ 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
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')