Python Class attributes and methods Exercise
Instructions
Create a new Google Colab
- Define a class User that receives 2 attributes in the initializer: a first name and a last name.
- Create a method called full_name, which returns the user's full name
- Create 2 users with 2 different names and print their full names
- Change the first name of the first object and print the full name again