“Kombination ohne Wiederholung Python” Code-Antworten

Kombination ohne Wiederholung Python

import itertools as it
list(it.combinations([1,2,3,4,5], 4))
#[(1, 2, 3, 4), (1, 2, 3, 5), (1, 2, 4, 5), (1, 3, 4, 5), (2, 3, 4, 5)]
Charming Cicada

Kombination ohne Wiederholung Python

>>> import itertools as it
>>> list(it.combinations([1,2,3,4,5], 4))
[(1, 2, 3, 4), (1, 2, 3, 5), (1, 2, 4, 5), (1, 3, 4, 5), (2, 3, 4, 5)]
Charming Cicada

Ähnliche Antworten wie “Kombination ohne Wiederholung Python”

Fragen ähnlich wie “Kombination ohne Wiederholung Python”

Weitere verwandte Antworten zu “Kombination ohne Wiederholung Python” auf Python

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen