In [5]:
lst = [5, 6, 78, 34, 4, 45, 23, 234]
In [8]:
def check_number(x):
if x in lst:
print(x, 'is in my list an the index is')
else:
print(x, 'is not in my list')
In [7]:
check_number(78)
In [ ]:
#didn't get to the index part