Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #create a function which when called displays a nursery rhyme
- import time
- nurseryRhyme = ["It's raining; it's pouring. " ,"The old man was snoring." ,
- "He went to bed and bumped his head.","And couldn't get up in the morning."]
- #Define a new function display_list
- # Print line by line
- def nursery_rhyme():
- for poemS in nurseryRhyme:
- print(poemS)
- time.sleep(3)
- nursery_rhyme()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement