TristanSld

count method in lists

Jan 8th, 2014
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. #-*-coding:utf-8-*-
  3. lst=["erik","çilek","karpuz","erik","kavun","karpuz","erik","çilek"]
  4. print lst.count("erik")
RAW Paste Data