4th day of python challenges 69-77
This commit is contained in:
10
challenges69-79/challenge-075.py
Normal file
10
challenges69-79/challenge-075.py
Normal file
@@ -0,0 +1,10 @@
|
||||
number_list = ['134', '762', '356']
|
||||
for i in number_list:
|
||||
print(i)
|
||||
append_to_list = int(input('Enter number to add to list : '))
|
||||
if append_to_list not in number_list:
|
||||
print('This is not in the list')
|
||||
number_list.append(append_to_list)
|
||||
else:
|
||||
print('This is in the list, could not add')
|
||||
print(number_list.index(append_to_list))
|
Reference in New Issue
Block a user