Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Solution:
- def detectCapitalUse(self, word: str) -> bool:
- return search(r'^([A-Z]?([a-z]+|[A-Z]+))$', word)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement