-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparte1.py
More file actions
87 lines (74 loc) · 1.83 KB
/
parte1.py
File metadata and controls
87 lines (74 loc) · 1.83 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# print("Hello, World!")
# print(2 and 4)
# print(2 & 4)
# print(not 2)
# print(~2)
# print("Hello" not in "Hello, World")
######################################################
# Condicionais
######################################################
# hello = "Hello"
# world = "World"
# numero1 = 1
# numero2 = 1
# if hello == world:
# print("Palavras Iguais")
# elif numero1 == numero2:
# print("Numeros Iguais")
# else:
# print("Tudo diferente")
# if __name__ == '__main__':
# print("Hello, World!")
# print("Teste")
# print(__name__)
######################################################
# While
######################################################
# i = 0
# while i < 5:
# print(i)
# i += 1
# if(i==3):
# print("Break")
# break
# else:
# print("i na saida %d" % i)
######################################################
# For
######################################################
# for i in range(1,10):
# print(i)
# else:
# print("i na saida %d" % i)
######################################################
# break
######################################################
# i = 0
# while True:
# if i > 10:
# break
# print(i)
# i += 1
######################################################
# continue
######################################################
# i = 0
# while i < 10 :
# i += 1
# if i == 5:
# continue
# print(i)
# i += 1 #Inserindo o contador aqui, causamos um loop infinito
######################################################
# pass
######################################################
# i = 0
# while i < 10:
# if (i >= 0 and i <= 3):
# print(i)
# elif (i >= 5 and i <= 6):
# print(2*i)
# else:
# # Aqui vai ser chamada uma funcao qualquer que ainda nao foi implementada
# pass
# i += 1