Web
Opt
tools
OrderedDict Module
Operation
Create/Initialize
Add/Set Items
Update Items
Move to End
Move to Beginning
Pop Item (Last/First)
Clear All Items
Input Data (Key-Value Pairs)
{'a': 1, 'b': 2, 'c': 3, 'd': 4}
Options
Show Available Methods
Step-by-step Execution
Compare with Regular Dict
Highlight Insertion Order
Run Visualization
Console Output
>
OrderedDict Visualization
Create/Initialize OrderedDict
Created OrderedDict:
1.
'a'
→
1
2.
'b'
→
2
3.
'c'
→
3
4.
'd'
→
4
OrderedDict Info
Total items: 4
First item: ('a', 1)
Last item: ('d', 4)
Type: OrderedDict
Insertion order: a → b → c → d