error while running code example
Example: error while running
You might have other errors, but surely, name is not declared, so
if name == 'main'
will raise you an error. Instead, it should be
if __name__ == '__main__'
You might have other errors, but surely, name is not declared, so
if name == 'main'
will raise you an error. Instead, it should be
if __name__ == '__main__'