What does ” ‘tuple’ object has no attribute ‘first_name’ mean in this situation?

You need to actually instantiate a User object not just a tuple. Try

user1 = User("Krish","Patel",100, 200)
user2 = User("Bob","Smith",2032, 153)

Leave a Comment