Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Correct Capital by flowerinapot
def correct_capital(line: str) -> bool:
# your code here
return line.isupper() or line.islower() or line.istitle()
print("Example:")
print(correct_capital("Checkio"))
# These "asserts" are used for self-checking
assert correct_capital("Checkio") == True
assert correct_capital("CheCkio") == False
assert correct_capital("CHECKIO") == True
print("The mission is done! Click 'Check Solution' to earn rewards!")
April 8, 2023
Comments: