I am new to python. This code is from "Dive Into Python" by Mark Pilgrim, it appears that join() is being called with 2 args, it works fine:
dirname="/usr/"
[f for f in os.listdir(dirname) if os.path.isdir(os.path.join(dirname,f))]
But if you try:
smthn="data"
smthnelse="otherdata"
print "\n".join(smthn,smthnelse)
We get an error that join() can take only one argument.