-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.2.py
More file actions
43 lines (26 loc) · 705 Bytes
/
5.2.py
File metadata and controls
43 lines (26 loc) · 705 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
42
43
string = 'teste'
if string == 'teste':
print("true")
if string != 'oi':
print("false")
string = 'TESTE'
if string.lower() == 'teste':
print("true")
number = 10
if number == 10:
print("true")
if number != 20:
print("is not 20 the number")
if number > 0:
print("the number is higher than 0")
if number < 100:
print("the number is lower than 100")
if number == 10 and number != 20:
print ("Yes, the number is 10 and different than 20")
if number > 0 and number < 100:
print ("the number is highter than 0 and lower than 100")
itens = ['teste',10,200]
if 'teste' in itens:
print("the 'teste' is in itens list")
if 300 not in itens:
print("The '300' is not in itens list")