I am trying to write a script and I put this down
if _name_== '_main_':
Now visual studio code isn't understanding _name_
but I am following a video so I am pretty confused
It gave me an error code that said it was undefined
I am trying to write a script and I put this down
if _name_== '_main_':
Now visual studio code isn't understanding _name_
but I am following a video so I am pretty confused
It gave me an error code that said it was undefined
it should be two underscores instead of one.
if __name__ == "__main__":
print("hello")
More information about this can be found here