mirror of
https://github.com/devenperez/leetcode.git
synced 2026-06-13 14:57:08 +00:00
7 lines
198 B
Python
7 lines
198 B
Python
class Solution(object):
|
|
def detectCapitalUse(self, word):
|
|
"""
|
|
:type word: str
|
|
:rtype: bool
|
|
"""
|
|
return word[1:] == word[1:].lower() or word == word.upper() |