Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Python Basics: A Practical Introduction to Python 3

NotificationsYou must be signed in to change notification settings

realpython/python-basics-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In this code repository you find the solutions and sample implementations for the solutions and challenges posed in ourPython 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

Withgit

If you havegit 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

Withoutgit

Alternatively, you can download the entire repository as a.zip file from the repository'shomepage using the green "Clone or download" button in the top right hand corner, or byclicking 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 ourPython 3 Installation & Setup Guide.

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

$python3 ch03-first-python-program/3-store-a-variable.pyhellohi

Note: Depending on your installation, you may need to typepython3.9 orpython39 to run the examples.

About

Python Basics: A Practical Introduction to Python 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp