Metadata-Version: 2.3
Name: zeropython
Version: 0.2.0
Summary: Zero Python, a Python library for educational purpose.
Project-URL: Bug Tracker, https://lab.frogg.it/dorianturba/zero-python/-/issues
Project-URL: Homepage, https://lab.frogg.it/dorianturba/zero-python
Author-email: Dorian Turba <zeropython.pip.w1nid@8shield.net>
License: MIT License
        
        Copyright (c) 2023 Dorian Turba
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Typing :: Typed
Requires-Python: >=3.9
Requires-Dist: typer
Description-Content-Type: text/markdown

# ZeroPython

## Rules

Develop code with Python programming language, without following features:

- `import`,
- `from` `import`,
- defining functions with builtin names,
- calls of builtin functions except [`int`, `list`, `dict`, `bool`, `str`, `float`, `tuple`, `type`],
- calls of methods (eg. `my_list.append()`),
- `try` clauses,
- `break` and `continue` statements,
- names (variables or functions) with builtin names or trailing underscore (eg. `my_var_`),
- `for` loop,
- list comprehensions,
- dict comprehensions,
- set comprehensions,
- generator expressions,
- `yield` and `yield from` statements,
- `raise` statements,
- `assert` statements,
- `else` statements of `while` loop,
- `global` statements,
- `nonlocal` statements,
- following operators on list: [`+`, `+=`, `==`, `>=`, `<=`, `>`, `<`, `!=`, `*=`],
- 3 arg form of `type`,
- class definitions,
- `in` and `not in` operator,
- `is` and `is not` operator,
- positional only arguments, keyword only arguments, keywords defaults arguments, defaults arguments, variadic arguments, variadic keyword arguments,
- slices,
- packing, unpacking

## Setup

### Install

```bash
pip install zeropython
```

## Exercises proposals

### append

return a list with the item added at the end of the given list

input: `[1, 2, 3]`

output: `[1, 2, 3, 4]`

### extend

return a list concatenated from the 2 given lists

input: `[1, 2, 3], [3, 4]`

output: `[1, 2, 3, 3, 4]`

### clear

return a cleared list

input: `[1, 2, 3]`

output: `[]`

### sort

return `None` and sort the given list

input: `[3, 1, 2]`

output: `[1, 2, 3]`
