Find the item in python list, is exit or not
View All Python Programs Source Code thislist = [“apple”, “banana”, “cherry”, “orange”, “kiwi”, “melon”, “mango”] item=input(“Enter the item for search : “) if item in thislist: print(“Item is found”) else: print(“Item does not exist in list”) Output Enter the item for search : melon Item is found View All Python Programs
Find the item in python list, is exit or not Read More »