forked from sonnynho9/Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmatriz
More file actions
46 lines (43 loc) · 594 Bytes
/
Copy pathmatriz
File metadata and controls
46 lines (43 loc) · 594 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
44
45
46
vetor=["a",1,2+3j,"maria","FATEC",4.9]
vetor[2]
vetor[0]
vetor[-1]
vetor[-2]
vetor[2:4]
vetor[:3]
vetor[3:]
vetor
vetor[3]="maria"
vetor
vetor[3]=="maria"
>>> for i in vetor:
print(i)
>>> for receptor in vetor:
print(receptor)
>>> receptor
>>> i
>>> for i in vetor:
if i=="maria":
print("Te achei danada")
>>> len(vetor)
>>> lista=vetor
>>> lista
>>> vetor
>>> bom=list("Maria")
>>> bom
>>> bom[3]
>>> lista[2]="casa"
>>> lista
>>> vetor
>>> zeca=vetor[:]
>>> zeca
>>> vetor
>>> lista
>>> vetor[3]="João"
>>> vetor
>>> lista
>>> zeca
pc=list("fatec-osasco")
pc
len(pc)
busca=[None]*12