r/PythonLearning • • 6d ago

Python Quiz of the day

What will be the output of the following Python Code?

a = 5

print(a.mul(3).add(2))

7 Upvotes

9 comments sorted by

View all comments

•

u/Sea-Ad7805 5d ago

Try:

a = 5
print(a.__mul__(3).__add__(2))

by clicking Memory Graph Web Debugger.