'string.join' is wrong in my Python console

Ian Kelly ian.g.kelly at gmail.com
Thu Dec 3 11:25:46 EST 2015


On Thu, Dec 3, 2015 at 9:00 AM, Robin Koch <robin.koch at t-online.de> wrote:
> Now *I* am confused.
>
> Shouldn't it be
>
> ", ".join(['1', '2', '4', '8', '16'])
>
> instead? Without any importing?

That would be the normal way to write it. The FAQ entry is suggesting
the string module function as an alternative for those who can't
accept it as a string method.



More information about the Python-list mailing list