Why does this work in Python? Creating a instance, setting a non existent attribute in that class, then printing that attribute
I was watching a Youtube tutorial about python classes. This is the code he wrote. class Tweet : pass a = Tweet() a.message = '140 chars' print (a.message) # This works print(Tweet.messag...
stackoverflow.com