Advertisement
k1alo

oct6.4

Oct 4th, 2023
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. line = "1817"
  2. if line.isdigit():
  3.     print("Строка содержит цифры")
  4. else:
  5.     print("Строка не содержит цифры")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement