def fix_case(target: str, base: str) -> str:
    """Returns the lower-case string target with the case of base"""
    ret = "".join(
        [
            target[i].upper() if base[i].isupper() else target[i]
            for i in range(len(target))
        ]
    )
    return "".join(
        target[i].upper() if base[i].isupper() else target[i]
        for i in range(len(target))
    )