Code Lab BetaBUILD. RUN. DISCOVER.

Code Lab is in development. New lessons and improvements are on the way. Progress can be deleted.

Challenges / 02

Grade Band.

About 5–10 minutes
Your lesson
Given: strings "85" (points) and "100" (maximum). Create score = int("85") and max_score = int("100"). Compute percent = score / max_score * 100. Bands: percent ≥ 90 → "A"; percent ≥ 80 → "B"; otherwise → "C". Store the label in grade. Print percent, then grade. Expected output: 85.0 B

Convert strings, compute a percent, then choose a label with conditions. Thresholds are given; the structure is yours.

challenge_02.pyPYTHON
Loading the runtime… The first launch may take a little longer.
… 0/20000
CHECKSSTANDBY
01percent is 85.0 from the formula
02grade is "B" via if/elif/else
03console shows 85.0 and B
…0/10000
ConsoleWrite the code. Bring it online.
›
Calculators BG — 50+ free online calculators | Калкулатори БГ