Mar-05-2022, 10:50 PM
Thank you very much to both of you, gentlemen, for your patience and wisdow.
That is what i wanted to know. What specificaly was going wrong in the code.
I didn't understand that t = Temperature() or matemp = Temperature() belong to the scope of the Class temperature.
I got confused because in the book in some examples the funtions are at the same level of the class and sometimes at the level of the init self function. I wonder if its always the case. That points out to what you are saying:
Now i can fix the rest.
Axel, Dean have a nice evening!
That is what i wanted to know. What specificaly was going wrong in the code.
I didn't understand that t = Temperature() or matemp = Temperature() belong to the scope of the Class temperature.
I got confused because in the book in some examples the funtions are at the same level of the class and sometimes at the level of the init self function. I wonder if its always the case. That points out to what you are saying:
Quote: Either conversionF() is supposed to be a method of class Temperature, or it is supposed to be a standalone function.
Now i can fix the rest.
Axel, Dean have a nice evening!