[Python] Increase font size in user input? [duplicate]

Discussão em 'Python' iniciado por Stack, Maio 26, 2025.

  1. Stack

    Stack Membro Participativo

    I'd like to create a game to guess Turkish license plates (actually to practice saying the Turkish letters and digits). It works fine with the following code:

    import random, time
    letters = 'ABCÇDEFGĞHIİJKLMNOÖPRSŞTUÜVYZ'
    digits = '0123456789'
    times = []
    while True:
    _plate = random.choices(list(letters+digits), k=7)
    plate = ''.join(_plate[:3]) + ' ' + ''.join(_plate[3:])
    t0 = time.time()
    input('''Num: %s | Best: %.2f | Last: %.2f | Average: %.2f
    -- %s --''' % (len(times), min(times or [0]), times[-1] if times else 0, sum(times)/len(times or [1]), plate))
    times.append(time.time() - t0)


    Example output:

    Num: 2 | Best: 2.09 | Last: 2.09 | Average: 2.33
    -- KÇK Y4DM --
    Num: 3 | Best: 2.09 | Last: 2.27 | Average: 2.31
    -- 2PĞ T3RP --
    Num: 4 | Best: 0.81 | Last: 0.81 | Average: 1.94
    -- O3O HE6D --


    However, for the "input", I'd like it to show a BIG TEXT so it's a bit easier for me to read. How could I do that?

    Continue reading...

Compartilhe esta Página