project_python/2.2_lesson.7.20.py
2025-12-15 13:24:13 +05:00

12 lines
468 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

****Задание 7 Параграф 2.2***
****А как быстро понять, является ли слово палиндромом? Написать программу для проверки этого! В этом нам снова поможет условный оператор.****
if name == "main":
num = int(input())
if num // 1000 == num % 10 and num % 1000 // 100 == num % 100 // 10:
print('YES')
else:
print('NO')