Special functions __add__,__mul__ | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Special functions __add__,__mul__

Can the special functions like __add__; __mul__ change the priority of math operators?

26th Nov 2018, 4:21 PM
Bartek Sobura
Bartek Sobura - avatar
1 Réponse
+ 1
This will not change the priority of math operators because __add__ is just the second form of + and other also.
26th Nov 2018, 4:40 PM
Maninder $ingh
Maninder $ingh - avatar