t454.py 131 B

12345678
  1. t = (1,2,3,4,2,1)
  2. print t.index(1) == 0
  3. print t.index(2) == 1
  4. print t.count(1) == 2
  5. print t.count(2) == 2
  6. print t.count(4) == 1