GithubHelp home page GithubHelp logo

purcellconsult / code-cool-stuff-with-python Goto Github PK

View Code? Open in Web Editor NEW
19.0 1.0 3.0 46.13 MB

A list of projects that I'm working in python. Will update read me when I've finished the projects.

License: Other

Python 100.00%

code-cool-stuff-with-python's Introduction

Code Cool Stuff With Python

A Cool Book to Learning Python!

Code Cool Stuff With Python Ecover

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…

enter image description here

enter image description here

enter image description here

enter image description here

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:

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.

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

How to Support

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.

  1. 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.
  2. Make a donation, my PayPal email is: [email protected]
  3. Sponsor me on GitHub, I offer several tiers: https://github.com/sponsors/purcellconsult

Have a Tech Related Slack Channel Or a Tech Focused Online Community? I Would Love to Support

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]

Business Related Inquiries

  • 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]

License and Copyright

The materials herein are all © 2019-2020 Doug Purcell.

enter image description here

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.

code-cool-stuff-with-python's People

Contributors

purcellconsult avatar

Stargazers

Vinayagam avatar  avatar Micah Raabe avatar Firdavs Akilov avatar Bee Gee Query avatar Carlos A Pimentel T avatar Wiz Learner (Why so Serious !!!) avatar Pavlo Kurochka avatar Kevin Reber avatar Katherine "Kati" Michel avatar Neal Fultz avatar John Mitchell avatar  avatar Chad avatar David B avatar Petar Buha avatar Austin Van Alfen avatar Jacquelline Beltran avatar  avatar

Watchers

James Cloos avatar

code-cool-stuff-with-python's Issues

Nested function

ORIGINAL
The inner() function is called within the inner function

I think this should say
The inner() function is called within the outer function

Since the code is

def outer():
    """this is outer"""
    x = 5
    print(x)
    def inner():
        """This is inner"""
        x = 10
        print(x)
    inner()

If the code is the following, then you can say "The inner() function is called within the inner function
"

def outer():
    """this is outer"""
    x = 5
    print(x)
    def inner():
        """This is inner"""
        x = 10
        print(x)
        inner()
    inner()

[Boolean Algebra] Change "or less" to "unless"

ORIGINAL
Remember, 0 maps to False, and 1 maps to True. A shortcut to remembering this is and is always False or less you have two True operands. Or, is always True or less you have two False operands.

SUGGESTION
Remember, 0 maps to False, and 1 maps to True. A shortcut to remembering this is and is always False unless you have two True operands. Or, is always True unless you have two False operands.

Ternary Statement: Move "The following prints nice" before the code instead of after the code

ORIGINAL
Ternary Statement
Is a special type of operator that evaluates something based on a condition being True or False. The best way to understand it is to take a look at a simple code snippet:
mood = True
state = 'nice' if mood else 'not so nice'
print('state = {}'.format(state))
The following prints nice because if mood evaluates to True.

NEW
Ternary Statement
Is a special type of operator that evaluates something based on a condition being True or False. The best way to understand it is to take a look at a simple code snippet:
The following prints nice because if mood evaluates to True.

mood = True
state = 'nice' if mood else 'not so nice'
print('state = {}'.format(state))

Data structures in python3.6

I think including an output of each data structure such as dictionaries and set makes it more clear to the reader.

I end up copy and paste the code to see the output

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.