Yashotantra Academy
AI · Blockchain · Cloud · Data
Dark mode active
Learn
Tracks
ABCD
Certification
More
▾
Dark mode active
Learn
Tracks
ABCD
Certification
Study
Theory
Code Lab
Build
Solidity IDE
Staking Sandbox
Simulation
Reference
Wallets
Gas Fees
Explorers
← Code Lab
Python
0/50 solved · 0%
All lessons
lesson
code
Control flow · easy
19. enumerate and zip
Pair indices and values.
Write `label_transactions(txs)` returning a list of strings `"0: mint"`, `"1: burn"`, etc. using `enumerate`.
Required in your answer:
enumerate(
Reveal solution
Run & check
Reset
Runs via Pyodide
def label_transactions(txs): # TODO: use enumerate pass
Output appears here.
← 18. split and join
20. Dict comprehensions →