1#You have to simply convert a string to float.
2
3num1 = float(input("Enter a number: "))
4num2 = float(input("Enter another number: "))
5result = num1 + num2
6print(result)
7
8#In this case if user puts a number such as 10 + 10 it will be 20: 10 + 10 = 20
9
10#if you don't convert it then it will add up the string like below
11
12num1 = input("Enter a number: ")
13num2 = input("Enter another number: ")
14result = num1 + num2
15print(result)
16
17#The out put will be like so: "10" + "10" = 1010
18
19