ID EN
Threading

run

Python 3.11

Method representing the thread’s activity.

Syntax

PYTHON
run()

Examples

Example 1
PYTHON
>>> from threading import Thread
>>> t = Thread(target=print, args=[1])
>>> t.run()
1
>>> t = Thread(target=print, args=(1,))
>>> t.run()
1

See Also

run() Thread