tw123789
tw123789

Reputation: 55

How to insert a time gap of 1 second between execution of two statements in python

I have a "FOR" loop in the python 2.7 web scraping programme and I am going to insert a time gap of 1 second at the end of the FOR loop. How can I do that? Thanks.

Upvotes: 0

Views: 1365

Answers (1)

Stefan Herijgens
Stefan Herijgens

Reputation: 386

Import the time library: import time;

And use: time.sleep(1)

Upvotes: 1

Related Questions