What is the difference of function and attribute?
I have been running ex41 script to translate the OOP into English and English to OOP for several days now. My mistakes are fewer and need to look at phase drill above it les and less. However, I am constantly not getting these two correct.
foo.M(J)
"From foo, get the M function, and call it with parameters self, J."
foo.K = Q
"From foo, get the K attribute, and set it to Q."
I put “get attribute” when it should be “get function” and vise versa. (unless i look at the chart.)
Whats confusing me is foo.M
and foo.K
parts look alike.
I have looked tough this forum and online all morning and have fell down a couple rabbit holes, none of which answer me.
I can memorize what to say when i see' = '
or ' () '
but i think I’m missing something I probably should have caught before.
Thanks for any help or direction to look.