close

[Solved] “Can only join an iterable” python

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error “Can only join an iterable” python in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How “Can only join an iterable” python Error Occurs?

Today I get the following error “Can only join an iterable” python in python.

How To Solve “Can only join an iterable” python Error ?

  1. How To Solve “Can only join an iterable” python Error ?

    To Solve “Can only join an iterable” python Error splitlist1.reverse(), like many list methods, acts in-place, and therefore returns None. So tobereversedlist1 is therefore None, hence the error.

  2. “Can only join an iterable” python

    To Solve “Can only join an iterable” python Error splitlist1.reverse(), like many list methods, acts in-place, and therefore returns None. So tobereversedlist1 is therefore None, hence the error.

Solution 1

string join must satisfy the connection object to be iterated(list, tuple)

splitlist1.reverse() returns None, None object not support iteration.

Solution 2

splitlist1.reverse(), like many list methods, acts in-place, and therefore returns None. So tobereversedlist1 is therefore None, hence the error.

You should pass splitlist1 directly:

splitlist1.reverse()
reversedlist = ' '.join(splitlist1)

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read