Python

No description

fork
loading
Files
  • main.py
  • asignacion.py
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
tupla = [10, 20, 30, 40, 50, 60, 70]

#print(tupla)

tupla[1:4] = [200,300,400,500,600,700]
print(tupla)

# print(tupla[0:890])

#print(tupla[3:])

# print(tupla[:2])
# print(tupla[0:2])

# print(tupla[:-2])

print(tupla[-3:-1])
# print(tupla[-3:])
# print(tupla[-9:])

# print(tupla[-3:3])

tupla[1:3] = [200,300]

print(tupla)

tupla[1:3] = []

print(tupla)

print(tupla + [1000, 2000])