Python 3 solutions to the exercises in Zed Shaw's Learn Python the Hard Way. Done as an exercise in developing a more "Pythonic" style of coding. What's New in Python 3 is an indispensable resource for when things don't work. PEP 8 - Style Guide for Python Code is a good resource for Python coding conventions.
Read Learn Python the Hard Way and find additional material at the author's own GitHub.
If you're new to programming, you should definitely follow the author's advice and do these exercises in Python 2 instead. I am a trained professional.
###Exercise Directory
- A Good First Program
- Comments and Pound Characters
- Numbers and Math
- Variables and Names
- More Variables and Printing
- Strings and Text
- More Printing
- Printing, Printing
- Printing, Printing, Printing
- What Was That?
- Asking Questions
- Prompting People
- Parameters, Unpacking, Variables
- Prompting and Passing
- Reading Files
- Reading and Writing Files
- More Files
- Names, Variables, Code, Functions
- Functions and Variables
- Functions and Files
- Functions Can Return Something
- What Do You Know So Far?
- Read Some Code
- More Practice
- Even More Practice
- Congratulations, Take a Test!
- Memorizing Logic
- Boolean Practice
- What If
- Else and If
- Making Decisions
- Loops and Lists
- While-Loops
- Accessing Elements of Lists
- Branches and Functions
- Designing and Debugging
- Symbol Review
- Doing Things to Lists
- Dictionaries, Oh Lovely Dictionaries
- Modules, Classes, and Objects
- Learning to Speak Object Oriented
- Is-A, Has-A, Objects, and Classes
- Basic Object-Oriented Analysis and Design
- Inheritance vs. Composition
- You Make a Game
- A Project Skeleton
- Automated Testing
- Advanced User Input
- Making Sentences