Python Division Operator

In Python, Arithmetic Division Operator takes two operands and returns the quotient of the division of first operand by the second operand.

Syntax

The syntax to find the division of two numbers: a and b using Division Operator is

a / b

The above expression returns a number.

ADVERTISEMENT

Example

In the following program, we take two numbers: a, b; and find the quotient of their division a / b.

main.py

a = 5
b = 4

result = a / b

print(result)
Try Online

Output

1.25

Conclusion

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