Why "now.year" not "now.year()"


Hi people in the internet.
In lesson 3, why we use “now.year” not “now.year()”.
I thought we did is called a function?
And the syntax to call function sometimes don’t need parenthesis?
How can I remember these irregular exceptions?:stuck_out_tongue:


Without a link to the lesson we are stymied.


Hope this shows the lesson I am questioning about.


year is not a function, its a class attribute which you can see here:


once you learn about classes, methods and attributes this will be easier to remember, but you don’t have to, given that is what we have documentation for


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.