Question: Write a function print_shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print Too few.. If more than 4, print Too many.. Else, print
Write a function print_shampoo_instructions() 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
