+ 3
Multithreading
Why doesn't this code work? https://code.sololearn.com/ctdtgx3QkBll/?ref=app
2 odpowiedzi
+ 6
So the question is why your program does not work? thread is not defined.
+ 3
Firstly, mythread(1) is not the same as mythread1(). Secondly, class declarations should not include arguments (you have class mythread1(thread):, when it should just be class mythread1:). The arguments should be moved to a constructor function (def __init__(self, thread):)