Skip to main content

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

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)

Source distribution for zeropython 0.2.0
File Size Uploaded
zeropython-0.2.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zeropython 0.2.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page