Conditional Check4:31 with Ken Alger
We can utilize a conditional check to verify if our script is being run directly or being imported. Then we can handle those conditions differently based on our needs.
'__name__' is an special variable that holds the name of the program being executed.
We can use
'__main__' to check if a script is running and gain more control over our programs
You need to sign up for Treehouse in order to download course files.Sign up