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'
Share
Post a Comment
for "Join() Takes Exactly One Argument (2 Given)"
Post a Comment for "Join() Takes Exactly One Argument (2 Given)"