def get_user(user): userId = user.id def main(): get_user(12) AttributeError: 'int' object has no attribute 'id'