TristanSld

index method in lists

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