F
F
FlakeSunrise2020-06-03 16:15:47
Python
FlakeSunrise, 2020-06-03 16:15:47

[Python] How to make a delete ticker?

Good afternoon, you need to make a cycle in which the letter will be written every second with an indent of 1-2 spaces. Thanks to those who will respond.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-06-03
@FlakeSunrise

import time

stroka = 'Hello, Habr!'

for char in stroka:
    print(char,end="  ", flush=True)
    time.sleep(0.2) # Время в мс

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question