Beginner
Add numbers that arrived as text
A form gave you two numbers as text: typed_a = "12" and typed_b = "30.5". Make a variable total that holds their sum as a number.
Then print Sum: 42.5 using total. Leave typed_a and typed_b as they are.
What Check tests
totalequals 42.5totalis a float, not texttyped_aandtyped_bare still text- The sum is calculated, not typed
- The program prints
Sum: 42.5
Stuck? One hint at a time
The solution unlocks after your first Check. Try first: that is where the learning happens.
main.py
Sign in to run your code.
Output
Press Run to see what your program prints.