Question: Must be in Python!!! 1. Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print Too few.. If more than 4,
Must be in Python!!!
1. 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 for the given program:
1 : Lather and rinse. 2 : Lather and rinse. Done.
2. Complete the PrintTicTacToe function with parameters horiz_char and vert_char that prints a tic-tac-toe board with the characters as follows.
def print_tic_tac_toe(horiz_char, vert_char): # FIXME: complete function to print game board return
Ex: print_tic_tac_toe('~', '!') prints:
x ! x ! x ~ ~ ~ ~ ~ x ! x ! x ~ ~ ~ ~ ~ x ! x ! x
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
