Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Programming With Microsoft Visual Basic 2017

Authors: Diane Zak

8th Edition

1337102121, 9781337517058, 978-1337102124

More Books

Students also viewed these Operating System questions

Question

Draw a schematic diagram of I.C. engines and name the parts.

Answered: 1 week ago