fork download
  1. #list = [ ["1 NWZ", "1 RWZ", "2 NWZ", "2 RWZ", "1E HZ", "1W HZ", "1-2EHZ", 2.0, "2W HZ", etc...]
  2. #^
  3. #["1 NWZ", "1W HZ", "3E FZ", "SNOK", "POK", 4.0, "1-2EHZ", "2E AK", "2W HZ", etc...]
  4. #^
  5. #["1 BW", "1AW AS"K, "3E FZ", "1BWAK", "POK", "TESTK", "1-2EHZ", "2E AK", 1.0, etc...] ]
  6. #^
  7. listed = [ ["1 NWZ", "1 RWZ", "2 NWZ", "2 RWZ", "1E HZ", "1W HZ", "1-2EHZ", 2.0, "2W HZ"],
  8. ["1 NWZ", "1W HZ", "3E FZ", "SNOK", "POK", 3.0, "1-2EHZ", "2E AK", "2W HZ"],
  9. ["1 BW", "1AW AS", "3E FZ", "1BWAK", "POK", "TESTK", "1-2EHZ", "2E AK", 1.0]]
  10.  
  11. dictionary={}
  12. for sub_list in listed:
  13. for value in sub_list:
  14. if isinstance(value,float):
  15. dictionary[str(value)]=sub_list
  16. else:
  17. pass
  18. ordered_list=[]
  19. for i in range(1,len(listed)+1):
  20. if dictionary[str(i)]:
  21. ordered_list.append(dictionary[str(i)])
  22.  
  23. for sub_list in ordered_list:
  24. print sub_list
Runtime error #stdin #stdout 0.08s 10856KB
stdin
Standard input is empty
stdout

Standard output is empty