{"id":25453278,"url":"https://github.com/pablovallejo/python-exercises","last_synced_at":"2025-11-02T07:30:22.986Z","repository":{"id":150042459,"uuid":"10729048","full_name":"PabloVallejo/python-exercises","owner":"PabloVallejo","description":"🤓 Series of exercises to learn Python","archived":false,"fork":false,"pushed_at":"2015-01-19T01:50:17.000Z","size":403,"stargazers_count":54,"open_issues_count":0,"forks_count":33,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-15T03:20:36.913Z","etag":null,"topics":["exercise","language","python"],"latest_commit_sha":null,"homepage":"","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/PabloVallejo.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}},"created_at":"2013-06-17T02:56:22.000Z","updated_at":"2023-11-23T20:54:21.000Z","dependencies_parsed_at":"2023-04-03T11:02:16.430Z","dependency_job_id":null,"html_url":"https://github.com/PabloVallejo/python-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/PabloVallejo%2Fpython-exercises","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fpython-exercises/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fpython-exercises/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PabloVallejo%2Fpython-exercises/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PabloVallejo","download_url":"https://codeload.github.com/PabloVallejo/python-exercises/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239384724,"owners_count":19629509,"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":["exercise","language","python"],"created_at":"2025-02-17T23:54:33.894Z","updated_at":"2025-11-02T07:30:22.920Z","avatar_url":"https://github.com/PabloVallejo.png","language":"Python","readme":"Simple Python exercises\n================\n\n[![Build Status](https://travis-ci.org/PabloVallejo/python-exercises.png?branch=master)](https://travis-ci.org/PabloVallejo/python-exercises)\n\nSet of solutions for [46 Simple python exercises](https://github.com/PabloVallejo/python-exercises/blob/master/exercises-list.md), a list of exercises to introduce people to the\nPython programming language.\n\nThis list of exercises comprises logical operators, loops, input and output, regular expressions and\nmore in order for people to have a basic overview of the language.\n\nIn order for better categorization, the exercises have been divided into 4 sections.\n\n1. Very Simple Exercises\n2. Higher Order Functions and List Comprehension\n3. Simple exercises including Input and Output\n4. Somewhat harder exercises\n\n## Getting started\nTo execute a function from the set, just clone the repository or download the .zip containing all the files, then change directory into `python-exercises/sections`, open the python command line and import the module in\nwhich the exercise you want to run is in and then call it.\n\n```bash\n$ git clone https://github.com/PabloVallejo/python-exercises.git\n$ cd python-exercises/sections\n$ python\n\nPython 2.7 (r27:82525, Jul ......\n\u003e\u003e\u003e import module_1\n\u003e\u003e\u003e module_1.historygram( [ 1, 2, 3 ] )\n   *\n   **\n   ***\n```\n\n\n## Running tests\n\nThere is also a test suite for this exercises, the purpose of it is first, so that users can refactor\nthings without breaking something, and second, for having a basic reference on how to test\nfunctions and use the basic unittests methods.\n\n```bash\n$ cd python-exercises\n$ python tests.py\n.........................................\n----------------------------------------------------------------------\nRan 41 tests in 0.218s\n\nOK\n```\n\n## Contributing\nEveryone is welcome to contribute. Feel free to submit a pull request, issue or suggestion you may find relevant.\n\n\n## Reference\nThe original collection of exercises was created by Torbjörn Lager (torbjorn.lager@ling.gu.se)\nand can be found [here](http://www.ling.gu.se/~lager/python_exercises.html).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablovallejo%2Fpython-exercises","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablovallejo%2Fpython-exercises","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablovallejo%2Fpython-exercises/lists"}