Make the script wait | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

Make the script wait

I want to receive an input from the user, make the script wait while i show some information, and then ask for a second input. How can i do that? thanks

14th May 2017, 12:49 PM
Abel G. Azze
Abel G. Azze - avatar
2 ответов
+ 3
from time import sleep sleep(seconds)
14th May 2017, 11:54 AM
Deep Serket
Deep Serket - avatar
+ 1
#Abel, try this code #with 'clear' option: import time import os tex=range(6) for i in tex: time.sleep(1) os.system('clear') print(i)
4th Oct 2017, 12:55 AM
dimon2101
dimon2101 - avatar