0
if _name_ == "_main_': <do something> This code gives error massage NameError: name '_name_' is not defined Please help me with the right code
5 Réponses
+ 3
You must double the underscore character, like this
if __name__ == "__main__": # instead _name_ and _main_
+ 1
Not quotes ( I did'nt see ^^ ), but underscores ^^
0
Sorry for the typo! I used double qutes
0
Ok i got it thank u so much
0
Great visph it was realy silly mistake. Tnx again