Can you explain __name__

Why name is used here? I didn’t get it

hey @Mohit2000 ,
name is a built-in variable which evaluates to the name of the current module. Thus it can be used to check whether the current script is being run on its own or being imported somewhere else by combining it with if statement, as shown below.

Its just used here to run this code file , not any particular purpose.
I hope this helps you :slightly_smiling_face:.