This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
# # В списке [14, -1, -14, 44, -44, 24, 34, -12] , состоящем из положительных и отрицательных чисел, посчитайте количество отрицательных элементов. Выведите результат на экран | |
print('Задача 1') | |
number_list = [14, -1, -14, 44, -44, 24, 34, -12] | |
print(number_list) | |
i = 0 | |
for number in number_list: | |
if number > 0: |