def capitalise(string):
    """
    Capitalises the first character of a string and returns the string.
    """
    # We don't use a single index, as if the string is zero length, this
    # would raise an out of bounds exception. Instead, using ranges of indexes
    # will only output the maximum length string possible.
    return string[0:1].upper() + string[1:]