-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_exercise_page137.py
More file actions
38 lines (25 loc) · 1.51 KB
/
python_exercise_page137.py
File metadata and controls
38 lines (25 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# esercizio numero 8.4 pagina 137
def make_shirts(shirt_size='large', shirt_message='I love python'):
"""Display information about size and text of a shirt"""
print(f"\nMy shirt's size is {shirt_size}, and the text written on it says: {shirt_message.title()}")
make_shirts(shirt_size='Large', shirt_message='I love python')
def make_shirts(shirt_size, shirt_message='I love python'):
print(f"\nMy shirt's size is {shirt_size}, and the text written on it says: {shirt_message.title()}")
make_shirts(shirt_size='medium')
def make_shirts(shirt_size='small', shirt_message= 'I love Rust'):
print(f"\nMy shirt's size is {shirt_size}, and the text written on it says: {shirt_message.title()}")
make_shirts(shirt_size='small', shirt_message='I love Rust')
# esercizio numero 8.5
def describe_city(city_name, city_country='Italy'):
"""Display information about the city name and country"""
print(f"\n{city_name} is in {city_country.title()}.")
describe_city(city_name='Perugia')
describe_city(city_name='Como')
def describe_city(city_name, city_country='Italy'):
"""Display information about the city name and country"""
print(f"\n{city_name} is in {city_country.title()}.")
describe_city(city_name='Como')
def describe_city(city_name= 'New York', city_country= 'United States'):
"""Display information about the city name and country"""
print(f"\n{city_name} is in the {city_country.title()}.")
describe_city(city_name='New York', city_country='United States')