Code Monkey home page Code Monkey logo

python-basics-exercises's Introduction

In this code repository you find the solutions and sample implementations for the solutions and challenges posed in our Python Basics book. All solutions and sample files are ordered by chapter so you can quickly navigate to the code you're looking for.

In most cases, the solutions presented here represent just one way out of many that the exercises and challenges can be solved. If you find a better way to solve one of the exercises or challenges feel free to open an issue or pull request!

Get the Book

» Click here to learn more about the book and get your copy

Downloading the Files

With git

If you have git installed, the easiest way to access these files is to clone the repository to the directory of your choice:

$ git clone https://github.com/realpython/python-basics-exercises.git

Without git

Alternatively, you can download the entire repository as a .zip file from the repository's homepage using the green "Clone or download" button in the top right hand corner, or by clicking here.

Running the Solutions & Code Examples

To run the solution code and code examples, first make sure you have Python 3 installed on your machine. If you need help installing Python 3, check out our Python 3 Installation & Setup Guide.

Example: To run the 3-store-a-variable.py exercise, type python3 3-store-a-variable.py into your terminal. Here's how that looks, with output:

$ python3 ch03-first-python-program/3-store-a-variable.py
hello
hi

Note: Depending on your installation, you may need to type python3.9 or python39 to run the examples.

python-basics-exercises's People

Contributors

dbader avatar fheisler avatar martin-martin avatar michaeljpeake avatar mjhea0 avatar somacdivad avatar terrameijar avatar terwebs avatar topleft avatar ybrenning avatar

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.