Python Programming for Beginners: An Introduction to the Python Computer Language and Computer Programming (Python, Python 3, Python Tutorial) by Jason Cannon
Author: Jason Cannon , Date: April 3, 2018
, Views: 279
def display_story(story):
"""Displays a story."""
print()
print('Here is the story you created. Enjoy!')
print()
print(story)
def create_story():
"""Creates a story by capturing the input and displaying a finished story."""
noun = get_word('noun')
verb = get_word('verb')
adjective = get_word('adjective')
the_story = fill_in_the_blanks(noun, verb, adjective)
display_story(the_story)
create_story()
Output:
Enter a word that is a noun: pencil
Enter a word that is a verb: program
Enter a word that is an adjective: important
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.