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
4. if / elif / else
Branch on a numeric condition.
Write `fee_tier(gwei)` returning `"low"` under 10, `"medium"` under 50, otherwise `"high"`.
Required in your answer:
if
elif
Reveal solution
Run & check
Reset
Runs via Pyodide
def fee_tier(gwei): # TODO pass
Output appears here.
← 3. String methods
5. for loops and range →