Skip to content
Advertisement

Removing Brackets from itertools combination list results

I have this code

JavaScript

The output is:

JavaScript

I want to remove the brackets and speech marks from the output. How can I achieve that?

so that my output would be:

JavaScript

Advertisement

Answer

You can accomplish this in the following way (without using str.join):

JavaScript

This should have the added benefit of avoiding the creation of intermediate strings in the join.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement