week-5 #6
13
5/5.7/5.7.2/main.py
Normal file
13
5/5.7/5.7.2/main.py
Normal 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)
|
||||
Reference in New Issue
Block a user