I'm having trouble extracting return values from a subroutine I ran from within a thread, in python 3.
import threading from threading import Thread def dothis(): x = 17 return x Thread(target = dothis).start() print(x) This just gives me an error and says x is not defined, but I returned it from my subroutine. Can anyone point me in the right direction?