Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Operator Overloading in Python

# Python program to show use of
# + operator for different purposes.
 
print(1 + 2)
 
# concatenate two strings
print("Geeks"+"For")
 
# Product two numbers
print(3 * 4)
 
# Repeat the String
print("Geeks"*4)
 
PREVIOUS NEXT
Tagged: #Operator #Overloading #Python
ADD COMMENT
Topic
Name
1+8 =