Skip to content
Advertisement

TypeError: thre() takes no arguments (1 given)

im new to learning python and was trying code port scan script using Queue and Threading python 2.7 it keep giving me this error. multiple error to be precise here is the last line of the erorr. meanwhile all the error have the “TypeError: thre() takes no arguments (1 given)”.

The error here:

JavaScript

The code here:

JavaScript

Advertisement

Answer

JavaScript
JavaScript

The diagnostic is pretty clear.

You defined the function to take no args. And then you essentially called thre(i), offering a single arg. Definition differs from the call.

Make them match.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement