week-5 #6

Merged
Kenwood merged 12 commits from week-5 into master 2021-02-08 00:20:27 -05:00
1 changed files with 12 additions and 0 deletions
Showing only changes of commit 6690d9cdf4 - Show all commits

12
5/5.7/5.7.1/main.py Normal file
View File

@ -0,0 +1,12 @@
def print_popcorn_time(bag_ounces):
if bag_ounces < 3:
print('Too small') # This should be returned instead.
elif bag_ounces > 10:
print('Too large') # This should be returned instead.
else:
print('{0} seconds'.format(6 * bag_ounces)) # This should be returned instead.
user_ounces = int(input())
print_popcorn_time(user_ounces)