{"id":20827283,"url":"https://github.com/realpython/python-basics-exercises","last_synced_at":"2025-04-08T00:38:42.937Z","repository":{"id":42020163,"uuid":"128671950","full_name":"realpython/python-basics-exercises","owner":"realpython","description":"Python Basics: A Practical Introduction to Python 3","archived":false,"fork":false,"pushed_at":"2024-06-08T19:13:09.000Z","size":4895,"stargazers_count":1051,"open_issues_count":37,"forks_count":530,"subscribers_count":83,"default_branch":"master","last_synced_at":"2025-03-31T23:35:51.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://realpython.com/pybasics-book","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realpython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-08T18:53:05.000Z","updated_at":"2025-03-27T01:12:24.000Z","dependencies_parsed_at":"2024-11-25T04:15:17.599Z","dependency_job_id":null,"html_url":"https://github.com/realpython/python-basics-exercises","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpython-basics-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpython-basics-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpython-basics-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fpython-basics-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realpython","download_url":"https://codeload.github.com/realpython/python-basics-exercises/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247755560,"owners_count":20990620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T23:11:40.130Z","updated_at":"2025-04-08T00:38:42.917Z","avatar_url":"https://github.com/realpython.png","language":"Python","readme":"# Exercise Solutions for [Real Python's *\"Python Basics: A Practical Introduction to Python 3\"*](https://realpython.com/products/python-basics-book/) Book\n\nIn this code repository you find the solutions and sample implementations for the solutions and challenges posed in our [Python Basics](https://realpython.com/products/python-basics-book/) book. All solutions and sample files are ordered by chapter so you can quickly navigate to the code you're looking for.\n\nIn 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!\n\n## Get the Book\n\n[» Click here to learn more about the book and get your copy](https://realpython.com/products/python-basics-book/)\n\n## Downloading the Files\n\n### With `git`\n\nIf you have [`git` installed](https://realpython.com/python-git-github-intro/), the easiest way to access these files is to clone the repository to the directory of your choice:\n\n```console\n$ git clone https://github.com/realpython/python-basics-exercises.git\n```\n\n### Without `git`\n\nAlternatively, you can download the entire repository as a `.zip` file from the repository's [homepage](https://github.com/realpython/python-basics-exercises) using the green \"Clone or download\" button in the top right hand corner, or by [clicking here](https://github.com/realpython/python-basics-exercises/archive/master.zip).\n\n## Running the Solutions \u0026 Code Examples\n\nTo 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 \u0026 Setup Guide](https://realpython.com/installing-python/).\n\nExample: 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:\n\n```console\n$ python3 ch03-first-python-program/3-store-a-variable.py\nhello\nhi\n```\n\n\u003e **Note:** Depending on your installation, you may need to type `python3.9` or `python39` to run the examples.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fpython-basics-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealpython%2Fpython-basics-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fpython-basics-exercises/lists"}