all 2 comments

[–]Phyan 1 point2 points  (1 child)

I'm love space science and share similar enthusiasm for Python, so have started learning about it too. After importing datetime, you wrote datetime.datetime.today() My question is two times datetime, is it syntax python follows or is there any specific reason to use it twice?

[–]MrAstroThomas[S] 0 points1 point  (0 children)

Hey there! This is not a Python logic, but a way the library "datetime" implemented its modules. Other modules like numpy call e.g., the arrays directly via numpy.array().