t293.py 232 B

1234567891011121314
  1. # Tests the list functions.
  2. l = [1,1,2,3,5,8,13,21]
  3. print l
  4. print l.count(1)
  5. print l.reverse()
  6. print l
  7. print l.count(1)
  8. print l.count(0)
  9. print l.count(3)
  10. print l.index(5)
  11. print l.remove(5)
  12. print l.remove(1)
  13. print l.count(1)
  14. print l