Home New Trending Search
About Privacy Terms
#
#operatorOverloading
Posts tagged #operatorOverloading on Bluesky

Output is 12 (Option B). Why? Python's __add__ method was overloaded to perform multiplication (3 * 4 = 12) instead of addition. The expression n1 + n2 returns a new Num object, so .x is required to extract the final integer value. #Python #CodingChallenge #OperatorOverloading

1 0 1 0
Preview
Operator overloads · Issue #2 · Alonso-del-Arte/toy-examples-python Good for Hacktoberfest participants looking to practice operator overloads in Python. Using test-driven development, create the operator overloads for the Fraction class in src/fractions.py, using ...

Calling #Python devs well-versed in #TDD and #operatorOverloading looking for one last minute pull request for #Hacktoberfest: github.com/Alonso-del-A...

0 0 0 0