Level 06: count controlled iterations and scope 0 van 9 activiteiten opgelost
  1. 1. Countdown to launch Nog niet opgelost
  2. 2. Rainfall Nog niet opgelost
  3. 3. Notebook Nog niet opgelost
  4. 4. Times tables Nog niet opgelost
  5. 5. Voting count Nog niet opgelost
  6. 6. Fizz Buzz Nog niet opgelost
  7. 7. Find and replace Nog niet opgelost
  8. 8. Twelve days of Christmas Nog niet opgelost
  9. 9. Distribution of two dice Nog niet opgelost
Volgende reeks Assessment point: levels 01-06
Level 06: count controlled iterations and scope

7. Find and replace

Meld je aan om je oplossing in te dienen en feedback te krijgen.

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