Guest User

Untitled

a guest
Nov 16th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import cutie
  2.  
  3. sampleDict = {
  4. "a": {"1": {"d": 9, "e": 8}, "2": {"f": 7, "g": 6}, "3": {"h": 5, "i": 4}},
  5. "b": {"1": {"d": 9, "e": 8}, "2": {"f": 7, "g": 6}, "3": {"h": 5, "i": 4}},
  6. "c": {"1": {"d": 9, "e": 8}, "2": {"f": 7, "g": 6}, "3": {"h": 5, "i": 4}},
  7. }
  8.  
  9. workingDict = sampleDict
  10.  
  11. while hasattr(workingDict, "keys"):
  12. print("Available Configurations")
  13. choices = list(workingDict.keys())
  14. workingDict = workingDict[choices[cutie.select(choices)]]
Add Comment
Please, Sign In to add comment