user
How would you solve the following programming problem:

Write a function called "isCapital" that takes a single character and returns a boolean value indicating if the character is a capital letter or not.

assistant
def isCapital(char):
    if ord(char) >= 65 and ord(char) <= 90:
        return True
    else:
        return False