I want to create two instances of a class UserDatum - one named Chris and the other named Steve. This is a simple example, IRL my list of names is much longer. Here is the code:
class UserDatum:
pass
users = ["Chris", "Steve"]
for user in users:
user = UserDatum()
I want
print Chris
to output something like "<main.UserDatum instance at 0x7fe5780217e8>". What I get now is "NameError: name 'Chris' is not defined".
I am still new to Python, so I would appreciate some hand-holding ;) Thanks!