This is a very basic doubt that came to my mind. When we use threading
module in python to start a new thread, I have see two different ways in which arguments are passed to with the call:
Version 1:
thread = threading.Thread(target=tar,args=(4,0.25,))
Version 2:
thread = threading.Thread(target=tar,args=(4,0.25))
The difference is the addition of ,
at the end of argument list at the end of version 1 call. Both the versions work fine but I want to know if theres any significant difference between the two versions above and if than which ones a better way to write? If theres no difference than what is the reason a lot of people and articles choose to use version 1 and add a redundant ,
at the end of the argument list.