nums = [1,2,3,4,5,6,7,8,9]
def find_num(num):
for item in nums:
if item == int(num):
return num
print("Could not find the number ",num)
inupt = input("what number you like to search?")
print(find_num(input))
def find_num(num):
for item in nums:
if item == int(num):
return num
print("Could not find the number ",num)
inupt = input("what number you like to search?")
print(find_num(input))
No comments:
Post a Comment