Programs for practice
In the program below, we used the arithmetic addition operator (%) to find even or odd number.
Source Code: PRINT A STRING 5 TIMES WITH DELAY OF 3 SECONDS
# PRINT A STRING 5 TIMES WITH DELAY OF 3 SECONDS import time x=0 print("\nblazingminds learning centre will be printed 5 times,with a delay for 3 seconds.") while x<5: print("blazingminds learning centre") time.sleep(3) x=x+1
OutputRun the program to see the output