fork download
  1. L1=[1,3,4,8,9,12]
  2. print (L1)
  3. print (L1[0])
  4. print (L1[1])
  5. print (L1[-1])
  6. print (L1[-2])
  7.  
Success #stdin #stdout 0.02s 9144KB
stdin
Standard input is empty
stdout
[1, 3, 4, 8, 9, 12]
1
3
12
9