Why name is used here? I didn’t get it
Can you explain __name__
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 .