def inch(cm: float=None, mm: float=None) ->float:
    """ Either cm or mm to inch """
    if cm is not None and mm is None:
        return cm / 2.54
    elif mm is not None and cm is None:
        return mm / 10 / 2.54
    else:
        raise ValueError('Either cm or mm should be provided.')
