Advertisement
Felanpro

Multi-dimensional list

Aug 5th, 2016
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. list1 = [[4, 6], [7, 8]]  # Two dimensional list.
  2.  
  3. print(list1[1][0])
  4.  
  5. list2 = [ [ [8, 3], [5, 7] ], [ [10, 1], [2, 9] ] ] #Third dimensional list.
  6.  
  7. print(list2[1][0][1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement