-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_exercise_page77.py
More file actions
34 lines (26 loc) · 1011 Bytes
/
python_exercise_page77.py
File metadata and controls
34 lines (26 loc) · 1011 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
# esercizio numero 5.1 pagina 77
car = 'toyota'
print("Is car == 'toyota'? I predict True")
print(car == 'toyota')
print("\nIs car == 'mini'? I predict False")
print(car == 'mini')
toppings = 'mushrooms'
print("is toppings == 'mushrooms'? I predict it is True")
print(toppings == 'mushrooms')
print("\nIs toppings == 'pepperoni'? I predict it is False")
print(toppings == 'pepperoni')
fruit = 'ananas'
print("is fruit == 'ananas'? I predict it is absolutely True!")
print(fruit == 'ananas')
print("\nIs fruit == 'meat'? I predict it is absolutely False!")
print(fruit == 'meat')
smartphone = 'Apple'
print("Is smartphone == 'apple'? I predict True")
print(smartphone == 'Apple')
print("\nIs smartphone == 'book'? I predict False")
print(smartphone == 'book')
book = 'principles by Ray Dalio'
print("is book == 'principles by Ray Dalio'? I predict True")
print(book == 'principles by Ray Dalio')
print("\nIs book == 'flowers'? I predict False")
print(book == 'flowers')