Advertisement
TristanSld

if and elif statements in conditional expressions

Jan 5th, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. #-*-coding:utf-8-*-
  4.  
  5. meyve=raw_input("Bir meyve adı yazın: ")
  6.  
  7. if meyve=="elma":
  8.  
  9.     print "elma bir meyvedir"
  10.  
  11. elif meyve=="armut":
  12.  
  13.     print "armut bir meyvedir"
  14.  
  15. elif meyve=="kabak":
  16.  
  17.     print "kabak bir meyve değildir"
  18.  
  19. elif meyve=="biber":
  20.  
  21.     print "biber bir meyve değildir"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement