I'm trying to give an argument to an imported function.
import sc1 #import sc1.py
from threading import Thread
print "Hello ",name
TypeError: main() takes exactly 1 argument (4 given)
You want to pass a tuple of args:
In your case, since
str are iterable, the
Thread is trying to unpack
"J" "o", "h", "n" as the arguments rather than passing the entire thing as an atomic unit.