Level 06: count controlled iterations and scope 0 of 9 activities solved
  1. 1. Countdown to launch Not yet solved
  2. 2. Rainfall Not yet solved
  3. 3. Notebook Not yet solved
  4. 4. Times tables Not yet solved
  5. 5. Voting count Not yet solved
  6. 6. Fizz Buzz Not yet solved
  7. 7. Find and replace Not yet solved
  8. 8. Twelve days of Christmas Not yet solved
  9. 9. Distribution of two dice Not yet solved
Next series Assessment point: levels 01-06
Level 06: count controlled iterations and scope

7. Find and replace

Sign in to hand in your solution and get feedback.

# 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"]