R3
Size: a a a
R3
AT
str.isdigit() or (str.startswith("-") and str[1:] and str[1:].isdigit())AT
R3
R3
БГ
БГ
py3
s = "--2"
if s.lstrip('-').isnumeric():
print(int(s))
Traceback (most recent call last):
File "488861032/source.py", line 3, in <module>
print(int(s))
ValueError: invalid literal for int() with base 10: '--2'
БГ
s
AT
E
AT
БГ
БГ
AT
AT
БГ
replaces = {"хуй": "писька"}
new_list = [replaces.get(word, word) for word in old_list]s