week-3 #4

Merged
Kenwood merged 7 commits from week-3 into master 2021-01-24 03:03:01 -05:00
1 changed files with 16 additions and 0 deletions
Showing only changes of commit 1b92f1d3f6 - Show all commits

View File

@ -0,0 +1,16 @@
def get_input():
result = []
print('Enter a number when prompted. Press enter to stop')
while True:
_input = input('Input a number: ')
if len(_input) == 0:
break
try:
_input = int(_input)
result.append(_input)
except ValueError:
print("Error, only accepts numbers")
return result
print(min(get_input()))