fork download
  1. x = [
  2. ["ahmed",1],
  3. ["cr.7",4],
  4. ["misse",2],
  5. ["ali",3]
  6. ]
  7. print(x)
  8. print(x[0])
  9. print(x[-1])
  10. print(x[1])
Success #stdin #stdout 0.02s 9200KB
stdin
Standard input is empty
stdout
[['ahmed', 1], ['cr.7', 4], ['misse', 2], ['ali', 3]]
['ahmed', 1]
['ali', 3]
['cr.7', 4]