How to Add Two Numbers in Python

To add two numbers in Python, you can use the + operator.

The following example shows how to add two numbers in Python.

Using + Operator

We can use the + operator to add two numbers in Python.

Suppose we have the following numbers:

# Declare numbers
x = 5
y = 3

# Add numbers
z = x + y

# Show addition
print("Addition:", z)

Output: 👇️

Addition: 8

In this example, we use the + operator to add the numbers x and y.