How to Calculate Two Numerical Variables Using + Character in Python


In this example we will show how to calculate two numerical variables using the + character in Python.

Source Code

num1 = 20
num2 = 18.6
print(num1 + num2)

Output:

38.6
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments