In python I have a variable set as a string which is a username:
self.loggedInUser = "Hanna"
self.loggedInUser = (0, "Hanna", "hash", "UID")
Python lets you change the value of a variable at any time, so it's certainly possible to change the value of
self.loggedInUser from a
string to a
tuple, or any other kind of object.
This can be confusing though, and could cause errors in your code if it's expecting one kind of object and finds a different kind, so it's better to split them up, say as
self.loggedInUserName and self.loggedInUser.