Есть вопросы?

Здесь Вы можете найти ответы на многие вопросы или задать свой вопрос!

Enter the four elements of the array: 1, 2, 3, 4
import array as a
n=int(input('number of elements'))
p=a. array('i')

for i in range(n):
p. append(int(input('element: ')))

del p[0]

for i in range(n):
print(p[i])
-
1. Что сделала программа?
2. Что изменится если исправить код на:
А) del p[1]
B) del p[2]
C) Вместо del вставить p. remove(2)
D) Вместо del вставить p. remove(3)
3. Запишите вывод.

Другие вопросы по: Информатика

Знаешь правильный ответ?
Enter the four elements of the array: 1, 2, 3, 4 import array as a n=int(input('number of elements')...

Популярные вопросы