def is_num(x):#pythonзадача #coбес
return all([i.isdigit() for i in x[1:].replace('.', '')]) and x.count('.') <= 1 and (x[0].isdigit() or x[0] == '-')
Post #1240
2.7K
Ответ к предыдущей задаче для новичков.
- 👎 3
- 👍 2