Page 1 of 1

Question 7 20 pts Question [20 points]: Define a class called Name so that the following code will return a greeting sen

Posted: Sun May 15, 2022 1:15 pm
by answerhappygod
Question 7 20 Pts Question 20 Points Define A Class Called Name So That The Following Code Will Return A Greeting Sen 1
Question 7 20 Pts Question 20 Points Define A Class Called Name So That The Following Code Will Return A Greeting Sen 1 (61.98 KiB) Viewed 59 times
Question 7 20 pts Question [20 points]: Define a class called Name so that the following code will return a greeting sentence as shown below. Note that there are no repeated letters in the output. The order of the letters in {} does not matter. >>> person = Name ("Bob", "Pitt") >>> print (f"{person.hi() } Your name consists of letters {person.letter()}.") Hi, Bob Pitt. Your name consists of letters ('i', 'o', 'b', 'p', 't').