+ 1
Python problem
Why this code is returning memory pointer location rather than value? And how to fix this problem? https://code.sololearn.com/cg6KPgcuT2DN/?ref=app
2 Réponses
+ 1
__init__ is a constructor used to initialize your class instance: every returned value will be discarded.
So remove the print() around the class instantiation, and put it in place of the constructor "return"
+ 1
Bilbo Baggins okay, understood. Thankyou for your response