Guest User

Untitled

a guest
Jul 19th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. pt = [{'min': 1.158, 'max': 1.150, 'id': 269097, 'to': 1532003820, 'from': 1532003760, 'check': 1.15852, 'no_check': 1.15822, 'volume': 0},{'min': 1.1, 'max': 1.17, 'id': 269098, 'to': 1532003880, 'from': 1532003820, 'check': 1.158615, 'nocheck': 1.158515, 'volume': 0}]
  2.  
  3. y = [item[0] for item in pt]
  4. z = [item[0] for item in pt]
  5. print(y)
  6. print(z)
  7.  
  8. File "test_YourM.py", line 19, in <module>
  9. y = [item[0][0] for item in pt]
  10. File "test_YourM.py", line 19, in <listcomp>
  11. y = [item[0][0] for item in pt]
  12. KeyError: 0
Add Comment
Please, Sign In to add comment