[Solved] I have given nested list accessing via for loop, but I can’t getting result?
patientsList = [[‘sagar’,’9856782311′],[‘mahsh’,’7865423158′]] search = input(“Enter mobile number of patient to search: “) for patient in patientsList: ”’ patient looks like this [‘sagar’,’9856782311′] patient[0] is the name patient[1] is the phone number ”’ if search == patient[1]: print(“Required patient is”) print(patient) print(“is Appointed”) break 9 solved I have given nested list accessing via for loop, … Read more