L = [423, 'hello', 52.6]
print(L[0]) // 423
print(L[:-1]) // [423, 'hello']
print(L+[1,2,3]) // [423, 'hello', 52.6, 1, 2, 3]
L.append('yes')
L.pop(0)
L.insert(0,22)
L.extend(L2)
L.remove('yes')
L.index(52.6)
len(L)
max(L) // [42, 45, 52.6]
min(L) // [42, 45, 52.6]
L.sort()
print(L) // [42, 45, 52.6]
L.reverse()
print(L) // [52.6, 45, 42]
mas = [[1,2,3], [5,2,7], [7,7,9],]
print(mas)
print(mas[1]) // [5,2,7]
print(mas[1][2]) // 7
print(list('str')) // ['s', 't', 'r']
gen = [gen*3 for gen in 'helo']
print(gen) // ['hhh', 'eee', 'lll', 'ooo']
y = [y * 3 for y in 'hello' if y != 'l']
print(y) // ['hhh', 'eee', 'ooo']
Кортеж // список, що не змінюється (займають менше пам'яті)
a = (1, 2, 3, 4, 5, 6)
print(a[4])