# task 1:
if input()[1] == '2': print('Так')
else: print('Ні')
# task 2:
x = int(input())
if x >= -2 and x <= 5: print('Так')
# task 3:
if (x >= -2 and x <= 5) or (x >= 7 and x <= 10): print('Так')
# task 4:
a, b = [map(int, list(input())) for i in range(2)]
if sum(a) == sum(b): print('Так')
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
# task 1:
if input()[1] == '2': print('Так')
else: print('Ні')
# task 2:
x = int(input())
if x >= -2 and x <= 5: print('Так')
else: print('Ні')
# task 3:
x = int(input())
if (x >= -2 and x <= 5) or (x >= 7 and x <= 10): print('Так')
else: print('Ні')
# task 4:
a, b = [map(int, list(input())) for i in range(2)]
if sum(a) == sum(b): print('Так')
else: print('Ні')