Let's learn how to build cool stuff with python that impress your friends and get you hired. By the time you’re done you’ll build 12 REAL PROJECTS that force you to master the fundamentals of python while having fun to boot.
- Acquire a new skill that lasts a lifetime
Here's a taste of some of the fun programs you'll build…
The code examples in this book are written for Python 3.X.
Want to Contribute to an Open Source Project? We would love to have you contribute to the project. There’s a plethora of ways to get involved from all skill sets, read CONTRIBUTING.md to get started today.
If you're an educator that wants to promote STEM then I got ya covered. I've created slide decks and pdfs based off the content in the book that you can use as source material. Check out EDUCATORS.md
Here's a list of all the chapters in Code Cool Stuff with Python:
- Chapter I: A Merry Overview of the Python Programming Language
- Chapter II: Crafting Small Scripts, Converters, and Practical Tools in Python
- Chapter III: How to Unlock the Power of Randomization
- Chapter IV: Crafting Catchy Computer Art With Python Turtle
- Chapter V: Building Practical Desktop apps in Python Using the Core Tkinter Library
If you're new to python then start with the first chapter which is a Merry Overview of the Python Programming Language. That will assist you with getting your environment setup and also learning the basics of python. Keep on rolling from there to complete more interesting projects.
Below is an explanation of the projects along with a link to the respective source code.
Name | Description | Source |
---|---|---|
Temperature Converter CLI | Convert temperatures into Celsius, Fahrenheit, and Kelvin. | Source |
Auto loan calculator | Calculates the total cost of an autoloan. | Source |
Mortgage calculator | Calculate the monthly payment that one owes on a house. | Source |
Spanish translator | A simple command line script that translates common Spanish phrases into English. | Source |
Your Bio | Prompts the user for a series of questions about themselves and then displays the answers. | Source |
A Game of Dice | A simple text based game that simulates a virtual bank account, a dice, and wagering. | Source |
Random Person Generator | Randomly generates a person's name, email, phone number, and age. | Source |
The California State Lottery | Simulates the various Californian lotteries such as Daily 3, Daily 4, Fantasy 5, Super Lotto Plus, Mega Millions, and Power Ball | Source |
Four Little Turtles | Simulates a racing game with python turtle | Source |
BMI Calculator | Computes the BMI index of an indivdual. Accepts input in pounds and kilograms. | Source |
Temperature Converter GUI | Allows for the conversion of Fahrenheit to Celsius and vice versa with Tkinter. | Source |
Secret Number Game | A fun guessing game in which the user guesses a number within the range of 1-100 until they're out of tries. The tries are randomly generated. | Source |
This version of Code Cool Stuff with Python is released under the Creative Commons 3.0 Noncommercial License. It’s free here for a simple reason, to make the book widely accessible to as many people as possible. However, I do wish to profit off my work and there are several ways you can support this project.
- Purchase the digital or paperback edition of this book on Amazon AND leave a review. Reviews help consumers make inform purchasing decisions. Learn how to leave reviews on Amazon.
- Make a donation, my PayPal email is: [email protected]
- Sponsor me on GitHub, I offer several tiers: https://github.com/sponsors/purcellconsult
I like collaborating with organizations that are passionate in tech. I endorse STEM education, lifelong learning, diversity, and equality. I would love to get a channel dedicated on your slack for Code Cool Stuff with Python. Of course I’ll pop up every now and then to answer questions, and will even be willing to schedule a live Q & A session on the channel. If interested, send me an email with details of your Slack Channel here: [email protected]
- If you’re affiliated with a software company, school, or library, and would like to order 100+ copies of Code Cool Stuff With Python.
- If you would like to license Code Cool Stuff with Python.
- If you need a python workshop organized.
- If you need a keynote or technical talk for a conference.
Send me a concise email with a self explanatory subject: [email protected]
The materials herein are all © 2019-2020 Doug Purcell.
The content in this repo is released under the Creative Commons 3.0 Noncommercial License so feel free to organize a meetup or teach a class based off this material.