scipiguy

Programming 102: Nursery Rhyme Function

Jun 22nd, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. def twinkle(end_one, end_two, end_three, end_four):
  2.     print("\nTwinkle twinkle little " + end_one)
  3.     print("How I wonder what you " + end_two)
  4.     print("Up above the world so " + end_three)
  5.     print("Like a diamond in the " + end_four)
  6.  
  7. end_one = input("Please enter your noun: ")
  8. end_two = input("Please enter your rhyming verb: ")
  9. end_three = input("Please enter your adjective: ")
  10. end_four = input("Please enter your final rhyming adjective: ")
  11.  
  12. twinkle(end_one, end_two, end_three, end_four)
Advertisement
Add Comment
Please, Sign In to add comment