Skip to content Skip to sidebar Skip to footer

Join() Takes Exactly One Argument (2 Given)

I'm getting error with this code: Traceback (most recent call last): File './main.py', line 172, in grab_first_name f_name = ''.join(n.split()[0], '\n') TypeError: join() tak

Solution 1:

Probably you meant this:

'\n'.join(n.split()[0])

Solution 2:

Did you mean to say:

f_name = n.split()[0] + '\n'

Post a Comment for "Join() Takes Exactly One Argument (2 Given)"