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.3.tar.gz
(6.2 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.3.tar.gz.
File metadata
- Download URL: code_animate-0.0.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5108078412a292871a0aae5de43d077bb7d058fe328cf393af7bf76d99273778
|
|
| MD5 |
dfe1c983b698e9728bfd3f70d15a0ef7
|
|
| BLAKE2b-256 |
09dca08a16738bfe90414ec78d6f2e958e417e875a794899d070f075d59abf25
|
File details
Details for the file code_animate-0.0.3-py3-none-any.whl.
File metadata
- Download URL: code_animate-0.0.3-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03d1949d9251974d96459e59776878725dac709fa6b518dd2761cf87f0236cc2
|
|
| MD5 |
d5d657bd3bd4425a08ca8a86c68723d9
|
|
| BLAKE2b-256 |
cbe567c09bc82332a8838f0e0db0ad49cbf0e2a7d6e03b276775666a072cf02f
|