Advertisement
TristanSld

if and else statemens in conditional expressions

Jan 5th, 2014
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. #! /usr/bin/env python
  2. #-*-coding:utf-8-*-
  3. sayi=input("Bir sayı girin: ")
  4. if sayi%2==0:
  5.     print "Girdiğiniz sayı çifttir."
  6. else:
  7.     print "Girdiğiniz sayı tektir."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement