A package to animate your code step by step in temrinal
Project description
code_animate
Allows you to animate your code step by step.
Note - press Enter to conitnue to next step
Installation
pip install code_animate
Quickstart
from code_animate import animate
@animate
def triangle(height: int) -> str:
output: str = ""
for i in range(height):
num_stars: int = i + 1
stars_str: str = "*" * num_stars
output += stars_str + "\n"
return output
print(triangle(4))
"""
def triangle(height: int) -> str:
output: str = "" {'height': 4, 'output': ''}
for i in range(height):
num_stars: int = i + 1 {'i': 3, 'num_stars': 4}
stars_str: str = "*" * num_stars {'stars_str': '****'}
output += stars_str + "\n" {'output': '*\n**\n***\n****\n'}
return output
"""
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
code_animate-0.0.8.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file code_animate-0.0.8.tar.gz.
File metadata
- Download URL: code_animate-0.0.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e8c9451e90574724b311dfa2ce059d966aa66ec3ee824fff97d59cb9e1fc84d
|
|
| MD5 |
db6041931dfc62ee618465e38e036731
|
|
| BLAKE2b-256 |
c9d9a87ab4efe3ff0312f7f14a777b5ee85e646d4d825400ee1e8f383502ffb9
|
File details
Details for the file code_animate-0.0.8-py3-none-any.whl.
File metadata
- Download URL: code_animate-0.0.8-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ff3ad0a72a5c139711d432c591cb1f5416a5a4c2e6854f533604caba1c93344
|
|
| MD5 |
591440ee0e1232455e4fae45aa20dc72
|
|
| BLAKE2b-256 |
43b21bd63fa37301ba7514c9a867c200fcb9d852e09c17b6afd25d8c39db22ba
|