Apr-18-2020, 08:36 PM
Making combinations from a list is difficult enough that it is included in the itertools library. Look at the itertools.combinations() function. They also have a permutations function.
Understand list comprehension and draw
|
|
Messages In This Thread |
Understand list comprehension and draw - by PUP280 - Apr-18-2020, 05:07 PM
RE: Understand list comprehension and draw - by michael1789 - Apr-18-2020, 07:33 PM
RE: Understand list comprehension and draw - by deanhystad - Apr-18-2020, 08:36 PM
RE: Understand list comprehension and draw - by bowlofred - Apr-19-2020, 02:02 AM
RE: Understand list comprehension and draw - by PUP280 - Apr-19-2020, 06:44 PM
RE: Understand list comprehension and draw - by bowlofred - Apr-19-2020, 09:22 PM
RE: Understand list comprehension and draw - by deanhystad - Apr-19-2020, 09:12 PM
RE: Understand list comprehension and draw - by PUP280 - Apr-20-2020, 05:23 PM
RE: Understand list comprehension and draw - by bowlofred - Apr-20-2020, 07:42 PM
RE: Understand list comprehension and draw - by PUP280 - Apr-23-2020, 05:25 PM
|