Pausing the python print functions | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Pausing the python print functions

How do I pause the code in Python so that there is a delay between each thing I want to print when the code runs?

11th May 2020, 11:20 PM
Anwyn Eisinger
Anwyn Eisinger - avatar
1 Réponse
+ 5
You can use the sleep method. from time import sleep print('hi) sleep(1) # pauses for 1 second print ('hello')
11th May 2020, 11:30 PM
Avinesh
Avinesh - avatar