1234567891011121314 |
- # Tests the list functions.
- l = [1,1,2,3,5,8,13,21]
- print l
- print l.count(1)
- print l.reverse()
- print l
- print l.count(1)
- print l.count(0)
- print l.count(3)
- print l.index(5)
- print l.remove(5)
- print l.remove(1)
- print l.count(1)
- print l
|