Untitled
unknown
plain_text
a year ago
569 B
3
Indexable
Never
example_array = [1, 2, 6, 3, 4] print(example_array) example_array.pop(2) print(example_array) example_array.clear() print(example_array) print() exarr2 = [1, 3, 10, [20,1], "proo"] exarr2.insert(0, "amm") exarr2.append("last") print(exarr2) print() a1 = ["umm", 'emm'] a2 = [200] a1.extend(a2) print(a1, len(a1)) print('Введите размер массива:') sizearr = int(input()) #ввод размера массива arr = [] #пустой массив for i in range(sizearr): x = int(input()) arr.append(x) print(arr) arr.reverse() print(arr)