0
How to make an calculation on variables?
When i try to do it (num1 = 3, num2= 2) it returns me 32.
6 Respuestas
+ 1
You have to turn your input (string) into real numbers:
num1 = float(num1)
Or directly:
num1 = float(input())
+ 2
We don't know what program/tutorial/book or whatever you are referring to. Can you give us some context?
+ 1
i was referring to my code:
https://code.sololearn.com/cui3Uv0NBf0i/?ref=app
+ 1
Thanks for help!
0
Both your inputs are strings.
0
so, how to change the inputs to fix this? (sorry, i'm new to programming)