Python Multiplication Operator
In Python, Arithmetic Multiplication Operator takes two operands and returns their product.
Syntax
The syntax to find the product of two numbers: a
and b
using Multiplication Operator is
</>
Copy
a * b
The above expression returns a number.
Example
In the following program, we take two numbers: a, b; and find their product.
main.py
</>
Copy
a = 5
b = 4
result = a * b
print(result)
Output
20
Conclusion
In this Python Tutorial, we learned about Arithmetic Multiplication Operator, its syntax, and usage, with examples.