Sign in to test your solution.
# Find and replace program # ------------------------- # Subprograms # ------------------------- def replace(x, y, l): def output(l): # ------------------------- # Main program # ------------------------- rhyme = ["roly", "poly", "roly", "poly", "up", "up", "up", "roly", "poly", "roly", "poly", "down", "down", "down"]

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged