# Задача 1
nums = [10, 40, 30]
count = len([i for i in nums[1:] if i == nums[0]])
print(0 if count == 0 else count + 1)
# Задача 2
len_1, len_2, len_3 = [7, 8, 9]
if len_1 + len_2 > len_3 and len_1 + len_3 > len_2 and len_2 + len_3 > len_1:
print('Кншн могут')
else:
print('Lol, no [UwU]')
# Задача 3
num = 13
print('Да' if num % 2 == 0 and num % 4 == 0 else 'Нет')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
# Задача 1
nums = [10, 40, 30]
count = len([i for i in nums[1:] if i == nums[0]])
print(0 if count == 0 else count + 1)
# Задача 2
len_1, len_2, len_3 = [7, 8, 9]
if len_1 + len_2 > len_3 and len_1 + len_3 > len_2 and len_2 + len_3 > len_1:
print('Кншн могут')
else:
print('Lol, no [UwU]')
# Задача 3
num = 13
print('Да' if num % 2 == 0 and num % 4 == 0 else 'Нет')