Write a Python program that checks whether a specified value is contained within a group of values.
Write a Python program that checks whether a specified value is contained within a group of values.
Program
def myfun(list_data, n):
for value in list_data:
if n == value:
return True
return False
if __name__=="__main__":
print(myfun([1, 5, 8, 3], 3))
print(myfun([5, 8, 3], 24))