Current_day, current_year, current_month variable vs. now.month, now.day, now.year


#1

I’m wondering if someone could explain the purpose that they extract information to variables (current_year = now.year, etc.) on slide 3 to print out the date, when you can simply just print out now.year, now.day, now.month?


#2

It’s kind of obvious that the author wants to clearly demonstrate what each property of the now object relates to. They want us to see what now.year contains, etc. Don’t take it too literally.


#3

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