patientsList=[['sagar','9856782311'],['mahsh','7865423158']]
patient=['mahsh','7865423158']
search=input("Enter mobile number of patient to search")
for i in patientsList:
for j in patient:
if search==patientsList[i][j]:
print("required patient is")
print(patient)
print( "is Appointed")
break
else:
print("Not appointed")
I need to check search element is present in list or not ,
but I can't compare the 'search' with list elements,
search is mobile number as input from user for searching