Python Programming for Beginners: An Introduction to the Python Computer Language and Computer Programming (Python, Python 3, Python Tutorial) by Jason Cannon

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
Language: eng
Format: azw3
Published: 2014-08-28

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