Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Multi_threading in python.
A
argho mitra
5 Views • May 09, 2023
Description
code:
import threading
import time
def function1():
for i in range(1,11):
print(i)
time.sleep(0.5)
def function2():
for i in range(ord('a'), ord('j')+1):
print(chr(i))
time.sleep(2)
thread_fun1 = threading.Thread(target = function1)
thread_fun2 = threading.Thread(target = function2)
thread_fun1.start()
thread_fun2.start()
# function1()
# function2()
import threading
import time
def function1():
for i in range(1,11):
print(i)
time.sleep(0.5)
def function2():
for i in range(ord('a'), ord('j')+1):
print(chr(i))
time.sleep(2)
thread_fun1 = threading.Thread(target = function1)
thread_fun2 = threading.Thread(target = function2)
thread_fun1.start()
thread_fun2.start()
# function1()
# function2()
More from User
01:20:25
welcome back webinar
argho mitra
02:28
Multi_threading in python.
argho mitra
Related Videos
08:22
How to input data from keyboard in python | keyboard input in python | read data from keyboard | python practically | easy way of python programming | python basics | read data from user | input from user in python | input function in python
ALL IN ONE
05:39
How to input data from keyboard in python | keyboard input in python | read data from keyboard | python practically | easy way of python programming | python basics | read data from user | input from user in python | input function in python
ALL IN ONE
01:50
Try-with-resources in python || Try catch in python || Try catch block in Python || Python course || Python tutorials || Python full course
Technical programmer
08:34
Print statement in python | how to use print statement in python | how to give message in python | printing on screen | how to print output in python | different forms of print statement | print statement in python | print function in python
ALL IN ONE
07:07
Python Programming Beginner - Lecture 3 Python 2 vs Python 3 - Complete Python Bootcamp 2016
Udemy Courses
03:27
Tkinter Events || Python Course || Python Full Course || Python programming || Python Language || Programming || coding
Technical programmer