Question: Write a function shampoo instructions ( ) with parameter numbeycles. If num _ eycles is less than 1 , print 'Too few: ' If more

Write a function shampoo instructions() with parameter numbeycles. If num_eycles is less than 1, print 'Too few:' If more than 4,
print 'Too many': Else, print ' N : Lather and rinse.' num_cycles times, where Nis the cycle number, follawed by 'Done:'
Sample output with input 2
1 : Lather and rinse,
2 : Lather and rinse.
Done.
Hint: Define and use a loco variable.
Learnhow our autograder works
1
2 l'' Your solution goes here '.'
3
4 user cycles = int(input())
shimpoo_instructions(user_cycles)
Write a function shampoo instructions ( ) with

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!