def is_title_case(s: str) -> bool:
return s.istitle();
def main():
tests = [
"Hello World",
"Hello world",
"hello World",
"Python Programming Language",
"This Is Fine",
"This is Not Fine"
]
for t in tests:
print(f'"{t}" -> {is_title_case(t)}')
if __name__ == "__main__":
main()
'''
run:
"Hello World" -> True
"Hello world" -> False
"hello World" -> False
"Python Programming Language" -> True
"This Is Fine" -> True
"This is Not Fine" -> False
'''