How can I return operators in python? I tried this but it didn't work obviously:
def plus():
return +
Is it even possible to write code like this without using the plus operator?
print(3plus()4)
How can I return operators in python? I tried this but it didn't work obviously:
def plus():
return +
Is it even possible to write code like this without using the plus operator?
print(3plus()4)
Like this
import operator
print(operator.add(3,4))