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 13 additions and 0 deletions
Showing only changes of commit f609162053 - Show all commits

13
5/5.7/5.7.2/main.py Normal file
View File

@ -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)