problem with print() and threading | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

problem with print() and threading

not a big problem but i made a basic packet flooding script, but apparently print() has issues when threaded? any idea how toprevent the random blank lines? Thanks! (going to be a part of an anti-Ddos script, working my knowledge up so i can hopefully make it good enough for others to use :) script - https://code.sololearn.com/cAe6XKf0nK68/#py

25th Oct 2017, 10:50 PM
Kody Noe
Kody Noe - avatar
2 Answers
+ 1
Hello @Kody. I haven't found any problem. But you must give the inputs in this format: ### ### ### In different lines. Try this and tell me, please.
26th Oct 2017, 12:24 AM
▲TopGun ▲
▲TopGun ▲ - avatar
0
@raphael, i wrote this using sublime text and idle, when you run it in idle instead of printing lines like '# # #' it goes more like '# # # # # # # #'
26th Oct 2017, 1:25 PM
Kody Noe
Kody Noe - avatar