Question: by python 1. Provide a class for authoring a simple letter. In the constructor, supply the names of the sender and the recipient def init_

by python 1. Provide a class for authoring a simple letter. Inthe constructor, supply the names of the sender and the recipient defby python

1. Provide a class for authoring a simple letter. In the constructor, supply the names of the sender and the recipient def init_ _(self, letterFrom, letterTo) Supply a method def addLine(self, line) to add a line of text to the body of the letter. Supply a method def getText(self) that returns the entire text of the letter. The text has the form: Dear recipient name: blank line first line of the bodv second line of the body last line of the body blank line Sincerely, blank 1ine sender name

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!