Hi.
Welcome to a new day.
Yesterday, we worked on standard modules.
The Time module is an example of a standard module.
So these modules come together with a python interpreter that we installed.
And so usually these modules give us access to methods and functions which are not so commonly used
compared to things which are immediately available in Python, such as the if conditional, the world
through loop.
So these modules give us access to more specific functionalities, such as getting the current time,
using the time module.
So standard modules was one thing we learned yesterday.
The other thing is that you learn that you can define these kind of variables.
So this is still a variable, but when you write it with capital letters, that's like a convention
that you are saying to yourself or to other programs who will read your code that, Oh, this variable
is like a constant.
So you usually define it on top of the program and then this value will be used throughout the script.
So it's better to have that object tied to a variable and then use the variable name throughout the
code.
You also learned about if name is equal to main.
So what this does is basically protecting these two lines.
So these two lines now are only executed when this functions.
That P file is executed directly.
These lines are not executed when you execute the order script which imports the functions that p file.
So this is to control the execution of this script.
So basically, if you want to call this functions from within this file, then you wrap them inside
this f name a single to main, because this is only true when this script is executed as the main file.
I hope that it's clear and let's do some more coding today, so I'll see you in the next video.