fork(1) download
  1. myLists = [
  2. {'1': '123', '2': '456', '3': '789'},
  3. {'1': '999', '2': '888'},
  4. {'1': '987', '2': '888', '3': '777', '4': '666'},
  5. ]
  6.  
  7. myDict = dict(enumerate(myLists, start=1))
  8.  
  9. print(type(myDict))
  10. print(len(myDict))
  11. print(myDict[1])
Success #stdin #stdout 0.02s 9132KB
stdin
Standard input is empty
stdout
<class 'dict'>
3
{'1': '123', '2': '456', '3': '789'}