Dobut in overloading

Please explain the operator overloading.

@sathsaran01

Operator overloading in Python is the ability of a single operator to perform more than one operation based on the class (type) of operands.

For example : -

The + operator can be used to add two numbers, concatenate two strings or merge two lists.

1 Like