TristanSld

dictionaries 4

Jan 10th, 2014
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/usr/bin/env python
  2. #-*-coding:utf-8-*-
  3. telefon_defteri={"Ahmet":"0533 123 54 58",
  4. "Salih":"0554 258 65 78", "Selin":"0546 589 23 59"}
  5. try:
  6.     telefon_defteri["Veli"]
  7. except KeyError:
  8.     print"Aranan öğe sözlükte yok!"
RAW Paste Data