You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
s = str(input(f'Введите одну строку без пробелов: '))
d = int(len(s))
poly = True
for i in range(d):
if s[i] == s[d-1]:
d -= 1
else:
poly = False
if poly is True:
print('yes')
else:
print('no')
The text was updated successfully, but these errors were encountered:
s = str(input(f'Введите одну строку без пробелов: '))
d = int(len(s))
poly = True
for i in range(d):
if s[i] == s[d-1]:
d -= 1
else:
poly = False
if poly is True:
print('yes')
else:
print('no')
The text was updated successfully, but these errors were encountered: