Go from Hello World to writing a short random quote generator using Python.
Start free course Join 25740 others!
This tutorial shows you how to build a simple quote bot in Python, even if you've never written any code before.
$
python get-quote.py
Keep it logically awesome
$
python get-quote.py
Speak like a human
Learn how to read from a text file of quotes, randomly choose one, and print it to your terminal.
Check that Python and Git are installed
Run the classic first program in Python
Learn how the main() thing works
Use file input to change your Python output
Explore the quotes file and grab the last one
Use your array knowledge to print quotes at random
Some ideas for next steps
138 minutes
All public courses on Learning Lab are free.
See how collaboration works on GitHub and start building great things, together.
If you are looking for a quick and fun introduction to GitHub, you've found it. This class will get...
Learn new skills by completing fun, realistic projects in your very own GitHub repository.