from time import sleep

LINE_CLEAR = "\x1b[2k"
LINE_UP = "\033[1A"


def print_single():
    characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    for idx in range(len(characters) + 1):
        print(characters[:idx], end="\r")
        sleep(0.25)
    print(LINE_CLEAR)
    print("Finished")


def print_single2():
    characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    for idx in range(len(characters) + 1):
        print(characters[:idx], end="\r")
        sleep(0.25)
    print(LINE_UP, end=LINE_CLEAR)


def print_progress():
    for x in range(75):
        print("*" * (75 - x), end="\r")
        sleep(1)


def print_percentage():
    for x in range(10):
        print(f"Progress {x / 10:2.1%}", end="\r")
        sleep(0.5)


if __name__ == "__main__":
    print_progress()
