# Desktop Python teaching example. Numerical inputs are illustrative.
source_v, led_v = 3.0, 2.0  # illustrative, not measured
for resistance_ohm in [330, 680, 1000]:
    resistor_v = source_v - led_v
    current_a = resistor_v / resistance_ohm
    print(resistance_ohm, "ohm", round(current_a * 1000, 2), "mA")
