NameError: name '_name_' is not defined Python
The issue is in line -
if _name_==’_main_’:
You need double underscore on both sides of name
as well as main
. And looks like the quotes are wrong, you need to use '
. Example -
if __name__=='__main__':
The issue can be solved this way
Comments
Post a Comment