4th day of python challenges 69-77

This commit is contained in:
abd.shallal
2019-07-20 16:01:50 +03:00
parent 5e9fbc523c
commit 0734522641
11 changed files with 199 additions and 142 deletions

View 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))