Dec-17-2019, 12:10 PM
(This post was last modified: Dec-17-2019, 12:11 PM by Axel_Erfurt.)
a=[56,34,29,39] def num(): n = int(input("Enter a list item: ")) if n in a: print("Given number index in the list is : ", a.index(n)) else: print("input value is not in the list item") num() num()