LampPi

 

Projects

Storytime

Storytime

What you will do

This tutorial lets you tell a story with code. It demonstrates the simple use of if/else statements to evaluate user input and generate a cute fairy story. This is a fun way to get started with Python programming that lets you really use your imagination and storytelling abilities!


What you will learn

By creating a story with code on your RaspberryPi you will learn:
◾ How to use the Python development application IDLE
◾ To get a user to input text and print it to the screen
◾ To use conditionals if, elif and else to set the gender of the main character
◾ To use lists to store names of characters or places in your story
◾ To use the random module to select items from a list
◾ To use variables to store and call information in a story


About

Contact

Links

Site Map

© LampPi 2024