Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise 8-3: T-Shirt: Write a function called make_shirt () that accepts a size and the text of a message that should be printed on the

Exercise 8-3:

T-Shirt: Write a function called make_shirt() that accepts a size and the text of a message that should be printed on the shirt.

The function should print a sentence summarizing the size of the shirt and the message printed on it.

Call the function once using positional arguments to make a shirt.

Call the function a second time using keyword arguments.

------------------------------------------------------------

Exercise 8-4:

Large Shirts: Modify the make_shirt() function so that shirts are large by default with a message that reads I love Python.

Make a large shirt and a medium shirt with the default message, and a shirt of any size with a different message.

------------------------------------------------------------

Exercise 8-5:

Cities: Write a function called describe_city() that accepts the name of a city and its country. The function should print a simple sentence, such as Reykjavik is in Iceland.

Give the parameter for the country a default value.

Call your function for three different cities, at least one of which is not in the default country.

------------------------------------------------------------

i need the correct python code fast please for all them thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions