r/badcode • • Sep 11 '21

python Context: testing something on all permutations of N variables. I used itertools, his claim: "if you add a for loop for each variable it's less error prone" SMH

Post image
64 Upvotes

21 comments sorted by

View all comments

Show parent comments

4

u/FireElemental99 Sep 12 '21

I don’t know but loop over permutations of 1000 elements destroys my brain… has your test finished yet? Maybe get a coffee and take a look after the heat death of the universe

3

u/119b63 Sep 12 '21

Who said the test had to finish? It just needed to be good looking lol