Aug-11-2017, 12:32 PM
You could use tuple assignment to clean up the split:
technology, color = item.split(':')Also, you only need to sort newcols once, after the loop, so give it the same indentation as the dict cols.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures