vertical_text

PHOTO EMBED

Thu Mar 04 2021 08:42:26 GMT+0000 (Coordinated Universal Time)

Saved by @Bartok #python

def transform_text(text: str) -> str:
    transform_text = ""
    for _index, _char in enumerate(text):
        if _index % 2:
            transform_text += _char.upper()

        else:
            transform_text += _char.lower()

    return transform_text


def display_vertical_text(text: str):
    for _char in text:
        print(_char)




if __name__ == "__main__":
    _text = "Hellow World"
    out = transform_text(text=_text)
    display_vertical_text(out)
content_copyCOPY