ZeroPython
Rules
Develop code with Python programming language, without following features:
import,fromimport,- 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()), tryclauses,breakandcontinuestatements,- names (variables or functions) with builtin names or trailing underscore (eg.
my_var_), forloop,- list comprehensions,
- dict comprehensions,
- set comprehensions,
- generator expressions,
yieldandyield fromstatements,raisestatements,assertstatements,elsestatements ofwhileloop,globalstatements,nonlocalstatements,- following operators on list: [
+,+=,==,>=,<=,>,<,!=,*=], - 3 arg form of
type, - class definitions,
inandnot inoperator,isandis notoperator,- 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]
Metadata
Release files for zeropython 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| zeropython-0.2.0.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zeropython-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / zeropython-0.2.0.tar.gz
| Download URL | zeropython-0.2.0.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5f60d1cdde087d69f679edb0c5b4a0e3e9a20ed416984d2b4155de14d538b06
|
|
BLAKE2b-256 checksum How to use checksums |
885dafb8635a214aba7423e585c247c2d4db03640b12988d0ca6dbb0c603a8b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|
Release files / zeropython-0.2.0-py3-none-any.whl
| Download URL | zeropython-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90c391ebf36f417a26d28f5217828ab0449ae14bd65526ce0739c75171ff88ba
|
|
BLAKE2b-256 checksum How to use checksums |
64620694d0589c0ca2447715cd567ba00dcbda200f26e1c239c4aa1641689f67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.13.0
|