Zero Python, a Python library for educational purpose.
Project description
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
andcontinue
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
andyield from
statements,raise
statements,assert
statements,else
statements ofwhile
loop,global
statements,nonlocal
statements,- following operators on list: [
+
,+=
,==
,>=
,<=
,>
,<
,!=
,*=
], - 3 arg form of
type
, - class definitions,
in
andnot in
operator,is
andis not
operator,- positional only arguments, keyword only arguments, keywords defaults arguments, defaults arguments, variadic arguments, variadic keyword arguments,
- slices,
- packing, unpacking
Setup
Install
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]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zeropython-0.2.0.tar.gz
(8.3 kB
view details)
Built Distribution
File details
Details for the file zeropython-0.2.0.tar.gz
.
File metadata
- Download URL: zeropython-0.2.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f60d1cdde087d69f679edb0c5b4a0e3e9a20ed416984d2b4155de14d538b06 |
|
MD5 | 9d5332a5e025c230ae8d7713f97d82bb |
|
BLAKE2b-256 | 885dafb8635a214aba7423e585c247c2d4db03640b12988d0ca6dbb0c603a8b2 |
File details
Details for the file zeropython-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: zeropython-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.13.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90c391ebf36f417a26d28f5217828ab0449ae14bd65526ce0739c75171ff88ba |
|
MD5 | b47e122ee1578690a0d35a8419507198 |
|
BLAKE2b-256 | 64620694d0589c0ca2447715cd567ba00dcbda200f26e1c239c4aa1641689f67 |