What I want to achieve: I want to a user to be able to create their own variable names to initialize a class. For example:
class User(self, x, y):
self.x = x
self.y = y
username = User
How can I make it so that the user controls what the variable initializing the class is called?
For example, my name is Johan. How could I make it so that:
johan = User
A more specific way of phrasing this question:
How can I take user input as a string, and create a variable named after that string?