From 6690d9cdf474f76d090aadbac26e96ae4eb774ee Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 7 Feb 2021 17:28:18 -0500 Subject: [PATCH] solve 5.7.1 --- 5/5.7/5.7.1/main.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 5/5.7/5.7.1/main.py diff --git a/5/5.7/5.7.1/main.py b/5/5.7/5.7.1/main.py new file mode 100644 index 0000000..98e578f --- /dev/null +++ b/5/5.7/5.7.1/main.py @@ -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)