Question: I need a working code for this: The previous code given by Chegg does not work: Write a function print_shampoo_instructions 0 with parameter num_cycles. If
I need a working code for this:

The previous code given by Chegg does not work: 
Write a function print_shampoo_instructions 0 with parameter num_cycles. If num_cycles is less than 1, print "Too few.". If more than 4, print "Too many.". Else, print " N : Lather and rinse." num_cycles times, where N is the cycle number, followed by "Done.". Sample output with input: 2 1: Lather and rinse. 2: Lather and rinse. Done. Hint: Define and use a loop variable. Code writing challenge activity demo 462776.3152292,9329y7 1 2 Your solution goes here 3 4 user_cycles = int(input()) 5 print_shampoo_instructions(user_cycles) Code writing challenge activity demo Testing with input: 2 Output is nearly correct, but whitespace differs. See highlights below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
