Advertisement
TristanSld

dictionaries 4

Jan 10th, 2014
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  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!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement