I am reading the multi-threading in python. When I come into code like below:
x = threading.Thread(target=thread_function, args=(1,))
I am a little bit confused why args
is (1,)
which takes a comma at the end. I have tested that if I remove the comma it won't work. But I kind of get confused what is the difference here.