main.py
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
print "Ola mundo!!"

print 2+2

print 2+3*4-5/2.0

print 2 + 3 ** (2 * 5)

print (6.5 + 7.8 + 9.2)/3

print type(False)

lista1 = [2.6, 5.6, 3.7, 8.9, 7.4]
lista2 = [8.9, 7.6, 6.8, 4.3, 7.5]
lista3 = [7.4, 4.6, 9.8, 10.0, 5.8]

for i in range(0,5):
  nota1 = lista1[i]
  nota2 = lista2[i]
  nota3 = lista3[i]
  media = (nota1 + nota2 + nota3)/3
  print "A media deu", media
  
  

import turtle


def quadrado(lado):
  for k in range(4):
    turtle.forward(lado)
    turtle.left(90)

# quadrado(50)  #chamando
# quadrado(100)
# quadrado(20)
# quadrado(200)

x = 10
for k in range(100):
  quadrado(x)
  x = x + 10



for k in range(4):
  turtle.forward(50)
  turtle.left(90) 
  
for k in range(6):
  turtle.forward(100)
  turtle.left(60)
  
for k in range(3):
  turtle.forward(100)
  turtle.left(120)
  
for k in range(5):
  turtle.forward(100)
  turtle.left(360/5)













result
console