Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- line = "1817"
- if line.isdigit():
- print("Строка содержит цифры")
- else:
- print("Строка не содержит цифры")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement