From f609162053e7bd0006cfe63a3ee0ca0d1d1d6af5 Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 7 Feb 2021 21:49:11 -0500 Subject: [PATCH] solve 5.7.2 --- 5/5.7/5.7.2/main.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 5/5.7/5.7.2/main.py diff --git a/5/5.7/5.7.2/main.py b/5/5.7/5.7.2/main.py new file mode 100644 index 0000000..fbc4acb --- /dev/null +++ b/5/5.7/5.7.2/main.py @@ -0,0 +1,13 @@ + +def shampoo_instructions(num_cycles): + if num_cycles < 1: + print('Too few.') + elif num_cycles > 4: + print('Too many.') + else: + for i in range(num_cycles): + print('{0} : Lather and rinse.'.format(i + 1)) + print('Done.') + +user_cycles = int(input()) +shampoo_instructions(user_cycles)