Question: Create a class in Python Write a class called Name and create the following attributes given a first name and last name (as fname and

Create a class in Python

Create a class in Python Write a class called Name and create

Write a class called Name and create the following attributes given a first name and last name (as fname and lname): An attribute called fullname which returns the first and last names. A attribute called initials which returns the first letters of the first and last name. Put a between the two letters. Remember to allow the attributes fname and iname to be accessed individually as well. al = Name("john", "SMITH") al.fname - "John" al.lname - "Smith" al. fullname "John Smith" al.initials -- "J.S

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!