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

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
Get step-by-step solutions from verified subject matter experts
