Welcome to Westonci.ca, the ultimate question and answer platform. Get expert answers to your questions quickly and accurately. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Write a function 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.

Hint: Define and use a loop variable.


1
2
3
4user_cycles = int(input())
5shampoo_instructions(user_cycles)



Sagot :

Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We appreciate your time. Please come back anytime for the latest information and answers to your questions. Thank you for visiting Westonci.ca. Stay informed by coming back for more detailed answers.