What do you want to save?
Add Code snippet
New code examples
-
Python 2021-09-17 10:17:03
python could not convert string to float
#You have to simply convert a string to float. num1 = float(input("Enter a number: ")) num2 = float(input("Enter another number: ")) result = num1 + num2 print(result) #In this case if user puts a number such as 10 + 10 it will be 20... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5