-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_exercise_page56.py
More file actions
41 lines (24 loc) · 929 Bytes
/
python_exercise_page56.py
File metadata and controls
41 lines (24 loc) · 929 Bytes
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
39
40
41
#esercizio numero 4.1 pagina 56
pizzas = ['margherita', 'prosciutto e funghi', 'diavola']
for pizza in pizzas:
print(pizza)
pizzas = ['margherita', 'prosciutto e funghi', 'diavola']
for pizza in pizzas:
print(pizza)
print(f"I really like {pizza.title()} pizza!.\n")
pizzas = ['margherita', 'prosciutto e funghi', 'diavola']
for pizza in pizzas:
print(pizza)
print(f"I really like {pizza.title()} pizza!.\n")
print("I really like pizza! It's my favourite dish.")
#esercizio numero 4.2 pagina 56
pets = ['cat', 'dog', 'rabbit']
for pet in pets:
print(pet)
pets = ['cat', 'dog', 'rabbit']
for pet in pets:
print(f"a {pet.title()} would make a great pet!.\n")
pets = ['cat', 'dog', 'rabbit']
for pet in pets:
print(f"a {pet.title()} would make a great pet!.\n")
print(f"any of these animals would make a great pet, they're all beautiful !.")