Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # My Haiku
- #Create an initial list
- myHaiku = ["Sunny in our garden","The daffodils are coming","Spring!",""]
- #Define a new function display_haiku
- def display_haiku():
- for item in myHaiku:
- print(item)
- display_haiku()
- # Add item to the list
- myHaiku.append("by Chris Garrard")
- #Display updated list
- display_haiku()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement