0
I want to print amessage if any one input chars (string) instead of numbers and stop my following code after this line ?
2 ответов
+ 1
You could do it like this:
if not re.match(x,degree):
not ok
else
your logic
0
you can check input with isdigit().