Skip to content

Conversation

MarianneLang
Copy link

No description provided.

@yzerlaut
Copy link
Owner

yzerlaut commented Apr 15, 2020

Do you know how can this fix the TypeError problem ?

from itertools import combinations
couples1 = list(combinations(range(2), r=3))
couples2 = [comb for comb in combinations(range(2), r=3)]
print(type(couples1), type(couples2))

gives:

<class 'list'> <class 'list'>

there are the same type...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants