Question: 2. Class Implementation. Save your code as lab11_2.py (2-pt). 1) Make a class called User. Create two attributes called first_name and last_name, and then

2. Class Implementation. Save your code as lab11_2.py (2-pt). 1) Make a class called User. Create two attributes called first_name and last_name, and then create two more other attributes that are typically stored in a user profile. 2) Make a method called describe_user() that prints a summary of the user's information. 3) Make another method called greet_user() that prints a personalized greeting to the user. 4) Create two instances representing different users, and call both methods for each user. Example Output Tom Cat Username: t_cat Email: t_cat@QCC.cuny.com Location: Bayside Welcome back, t_cat! Jerry Mouse Username: jmouse1122 Email: jmouse1122@example.com Location: New York Welcome back, jmouse1122! I
Step by Step Solution
3.39 Rating (146 Votes )
There are 3 Steps involved in it
class User def initself firstname lastname username email lo... View full answer
Get step-by-step solutions from verified subject matter experts
