Using Else With For Loops | Python Tutorials For Absolute Beginners In Hindi #74

Code as described/written in the video


khana = ["roti", "Sabzi", "chawal"]

for item in khana:
    if item == "rotiroll":
        break

else:
    print("Your item was not found")




Comments(1)

sonu007 at 2019-06-23 09:30:09 says
Harry Bhai meri aakho ki aatma tript hogyi