Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # function to display a nursery rhyme when called
- def jack_and_jill():
- rhyme = ["Jack and Jill went up the hill","To fetch a pail of water",
- "Jack fell down and broke his crown","and Jill came tumbling after."]
- for lines in rhyme:
- print(lines)
- jack_and_jill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement