Egor_Ovchinnikov

Что добавить для исключения типа входных данных

Jan 18th, 2021
655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. def poly(x: str):
  2.     if x == x[::-1]:
  3.         return 'That is Poly'
  4.     else:
  5.         return 'That is not Poly'
Advertisement
Add Comment
Please, Sign In to add comment