Change the dict(zip(v_Keys, v_Values)) to OrderedDict(zip(v_Keys, v_Values)), on line 4. Thanks megaflo!
JasonHippy commented: A great start, definitely something that can be built upon! +9
Change the dict(zip(v_Keys, v_Values)) to OrderedDict(zip(v_Keys, v_Values)), on line 4. Thanks megaflo!
My dad gave me a programing idea but I needed ordered dictionaries. I could solve it till now. Thanks!
I made a little py editor because I didn't want to go to all the troble of installing an idle, but I didn't like notepad either. Here it is!
Is it posible to have an optional veriable in a funtion?
Such as this:
>>>def Say(msg, (optional)):
>>> print msg
>>> print optional
>>>
>>>Say('hi', 'option')
hi
option
>>>Say('not')
not
If so How?