Question: in python please Please show all steps In the file [**address book.py**](address book.py), write a function called **'get_formatted_address_string()'** tt will accept the following parameters: |

 in python please Please show all steps In the file [**address

book.py**](address book.py), write a function called **'get_formatted_address_string()'** tt will accept the following

in python please

Please show all steps

In the file [**address book.py**](address book.py), write a function called **'get_formatted_address_string()'** tt will accept the following parameters: | **Paraneter Name** | **Type** | **Notes** I-- name 1 -'str'. Optional parameter, with the string "Undisclosed Recipient" as its default value. 1 address 1 - str. 1 I city 1 - str. 1 I country 1 - str. 1 I postal code 1 -'int'. Optional parameter, with the integer 'O' as its default value. _**Table 1**: Parameters for the **'get_formatted_address_string()'** function. - Our function will then take these parameters, construct a nicely-formatted string (like you might see on an envelope) ***and return it***. Here's how this program would work in practice: python def maino: test_name = "Herodotos of Halicarnassus" test address = "Dionysiou Areopagitou 15" test_city = "Athens" test_country = "Greece" I test postal code = 11742 address_string = get_formatted_address_string(address=test_address, city=test_city, country=test_country, name=test_name, postal_code=test postal code) print(address_string) Output: 'text Herodotos of Halicarnassus Dionysiou Areopagitou 15 Athens, Greece 11742 A few things to note here: - Two parameters, 'name' and 'postal_code, have default values. If 'name' defaults to its default value, **include that default value in the final, formatted address**. If, for example, I hadn't passed a value for nane in our earlier function call, the final string would look like this: 'text Undisclosed Recipient Dionysiou Areopagitou 15 Athens, Greece 11742 'text - However, if the 'postal_code" defaults to 'e', ***do not include it in the final, formatted string***. If I had not passed a value for 'postal code in the earlier function call, then, the final, formatted string would look like this: Herodotos of Halicarnassus I Dionysiou Areopagitou 15 Athens, Greece

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!