Advertisement
bobhig

Nursery Rhyme

Jan 30th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. # function to display a nursery rhyme when called
  2.  
  3. def jack_and_jill():
  4.  
  5.     rhyme = ["Jack and Jill went up the hill","To fetch a pail of water",
  6.              "Jack fell down and broke his crown","and Jill came tumbling after."]
  7.  
  8.     for lines in rhyme:
  9.         print(lines)
  10.  
  11. jack_and_jill()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement