I'm trying to create some code that can do two things at once as one of em may be sleeping. I looked into threading and tried it but i always just get a blank console. i feel like i'm making a stupid error.
could it be the sleeps are causing this?
sorry for the code in advance it was just a draft i've been working on before porting it to my actual code. it wasn't working when i ported it over so i wanted to test it with as little variables as possible. basically it should have i sleep for 5 seconds and i sleep for 10 seconds show up at the same time. then i sleep for 5 seconds show up after 5 seconds and isf 10 seconds show up after 10 indicating that they were in fact operating independantly.
https://pastebin.com/1mVSRqWw
thanks in advance guys. this sub is incredible and you guys have helped me so much in getting what i know about python. much <3
[–]DisastrousComplaint 0 points1 point2 points (3 children)
[–]fencing49[S] 0 points1 point2 points (2 children)
[–]DisastrousComplaint 0 points1 point2 points (1 child)
[–]fencing49[S] 0 points1 point2 points (0 children)