word made of English letters. Its capitals are used properly if one of the following holds:
- every letter is a capital, as in NASA;
- no letter is a capital, as in river;
- only the first letter is a capital, as in Paris.
Return True if the word uses capitals properly and False otherwise.word='NASA' → True
Every letter is a capital, which is allowed.
word='Paris' → True
Only the first letter is a capital, which is also fine.
word='iPhone' → False
The capital is not at the start, so none of the three rules applies.
word='NASA'
True
Run checks the first 3 tests in your browser. Submit checks all 403 tests on the server, hidden ones included.