Python Addition Operator

In Python, Arithmetic Addition Operator takes two operands and returns their sum.

Syntax

The syntax to find the sum of two numbers: a and b using Addition Operator is

a + b

The above expression returns a number.

ADVERTISEMENT

Example

In the following program, we take two numbers: a, b; and find their sum.

main.py

a = 5
b = 4

result = a + b

print(result)
Try Online

Output

9

Conclusion

In this Python Tutorial, we learned about Arithmetic Addition Operator, its syntax, and usage, with examples.