Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
class User def initself firstname lastname username email lo...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started