Python – Threading

Table of Contents

Start

				
					import threading
import time

def Evennum():
    for i in range(2, 10, 2):
        time.sleep(1)
        print(i)

threading.Thread(target=Evennum).start()
				
			

Leave a Comment