Skip to content
Aabha AI Academy
Skip to reading

Python

01 Values

Compare these references after your own attempt. You can read them at any time; they do not record a live model or vendor run.

# Reference answer. Attempt the exercise first.
quantity = 4
unit_price_cents = 175
total = quantity * unit_price_cents
print(total, "cents")
hours = 135 // 60
minutes_left = 135 % 60
raw = "7"
topic = " Data "
result = int(raw) + 3
normalized = topic.strip().lower()
assert total == 700
assert (hours, minutes_left) == (2, 15)
assert result == 10 and normalized == "data"
print("Module 1 checks passed")

Download this source file