Answer the question
In order to leave comments, you need to log in
How to pass named arguments in Python?
There is a code
from threading import Thread
def a(b=None,c=None):
if c==True and b==None:
print('True')
Thread(target = a, args=(c=True)).start()
Answer the question
In order to leave comments, you need to log in
Thanks, figured it out
from threading import Thread
def a(b=None,c=None):
if c==True and b==None:
print('True')
Thread(target = a, kwargs={'c':True }).start()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question