Question 7 20 pts Question [20 points]: Define a class called Name so that the following code will return a greeting sen
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Question 7 20 pts Question [20 points]: Define a class called Name so that the following code will return a greeting sen
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').
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!