Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- owner = input("person")
- object = input("noun")
- adjective = input("adjective")
- print("This is "+owner+"'s "+object+
- ". It is "+adjective+".")
- # you can store the entire story in a variable!
- story = "This is "+owner+"'s "+object+". It is "+ adjective+"."
- print(story)
- # you can add a little bit to the story at a time
- storySoFar = "This is "
- # variable += value means variable = variable + value
- storySoFar += owner
- storySoFar += "'s "
- storySoFar += object
- storySoFar += ". It is "
- storySoFar += adjective + "."
- print(storySoFar)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement