Advertisement
bobhig

Wheels on the bus

May 23rd, 2021
803
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. #Print the first few verses of the wheels on the bus
  2.  
  3. verse_1 = """
  4. The wheels on the bus go round and round,
  5. round and round, round and round,
  6. The wheels on the bus go round and round,
  7. All day long.
  8. """
  9.  
  10. verse_2 = verse_1.replace('wheels','horn')
  11. verse_2 = verse_2.replace('round and round','beep beep beep')
  12. verse_2 = verse_2.replace('go','goes')
  13. verse_3 = verse_1.replace('wheels','wipers')
  14. verse_3 = verse_3.replace('round and round','swish swish swish')
  15. verse_4 = verse_1.replace('wheels','people')
  16. verse_4 = verse_4.replace('round and round','up and down')
  17. verse_5 = verse_1.replace('wheels','babies')
  18. verse_5 = verse_5.replace('round and round','wahh wahh wahh')
  19.  
  20. #print out verses
  21. print(verse_1 + verse_2 + verse_3 + verse_4 + verse_5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement