File: example_ordered_dict.py

package info (click to toggle)
python-allpairspy 2.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 204 kB
  • sloc: python: 627; makefile: 42; sh: 6
file content (18 lines) | stat: -rw-r--r-- 349 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env python3

from collections import OrderedDict

from allpairspy import AllPairs


parameters = OrderedDict(
    {
        "brand": ["Brand X", "Brand Y"],
        "os": ["98", "NT", "2000", "XP"],
        "minute": [15, 30, 60],
    }
)

print("PAIRWISE:")
for i, pairs in enumerate(AllPairs(parameters)):
    print(f"{i:2d}: {pairs}")