bobhig

Nursery Rhyme

Jan 30th, 2019
92
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data