54th day of python challenges 78-79
This commit is contained in:
13
challenges69-79/challenge-079.py
Normal file
13
challenges69-79/challenge-079.py
Normal file
@@ -0,0 +1,13 @@
|
||||
nums = []
|
||||
count = 0
|
||||
remove = False
|
||||
while not remove:
|
||||
if count == 3:
|
||||
ask = str(input('Do you still want the last number they entered saved? yes|no : ')).lower()
|
||||
if ask == 'no':
|
||||
nums.pop(count-1)
|
||||
remove = True
|
||||
else:
|
||||
nums.append(int(input('Enter number : ')))
|
||||
count = count + 1
|
||||
print(nums)
|
Reference in New Issue
Block a user