Python @ DjangoSpin

PyPro #98 Print with a delay

Buffer this pageShare on FacebookPrint this pageTweet about this on TwitterShare on Google+Share on LinkedInShare on StumbleUpon
Reading Time: 1 minutes

Printing with a delay in Python

Printing with a delay in Python

Write a Python program to print a string 3 times with a sleep duration of 1 second.

import time

for number in range(1, 6):
	print("Printing...")
	time.sleep(1)

See also:

Buffer this pageShare on FacebookPrint this pageTweet about this on TwitterShare on Google+Share on LinkedInShare on StumbleUpon

Leave a Reply