rodrigosantosbr

[Python] Check if string contains any letters from alphabet

Feb 14th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. string1 = "(555).555-5555 extA. 5555"
  2. string2 = '555 (234) - 123.32   21'
  3. resp1 = string1.upper().isupper()
  4. resp2 = string2.upper().isupper()
  5. print(resp1)
  6. print(resp2)
Advertisement
Add Comment
Please, Sign In to add comment