Question: Question 1 60 points 35 mins Write a Python class named Name where naker acomphs a string. This way the class creates a new name,
Question 1 60 points 35 mins Write a Python class named Name where naker acomphs a string. This way the class creates a new name, which may be composed of any number letters. If the initializer is not provided with an argument, then that name is considered to be empty Support the initiatzation of Name instances. The AP of the initializer is provided for your below. Support the printing and displaying of None instants Support the a / uyntax, which should concatenate multiple names into a new single name, as shown in the examples below. Note that you need to preserve each part separately Examples: >>>na - Nane A) nb-Name B) >>>ncnb A/B >>> ndName) >>> ne - Name "C") >> nnd / ne ne >>> print n) CAB Your code should accept a regular song as in the following example: >> ngn / "PEACE >>> prit ng C/ A / B / PLACE Note that each part of the a Nane instances to be separated with the character added with a single space before and after it PROVIDE YOUR ANSWER IN THE FOLLOWING CODE CELL To class Name: See more Secacations det Inaselt. string MER
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
