Advertisement
Guest User

time.py

a guest
May 23rd, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. time=int(input("Enter time to ask Pryer time:"))
  2. if (time<=24):
  3.     print("You entried:",time)
  4.     if (time>=13 and time<15):
  5.         print("Its time for Dhuhr")
  6.     elif (time>=15 and time<18):
  7.         print("Its time for Asr")
  8.     elif (time==19):
  9.         print("Its time for Magrib")
  10.     elif (time>=20 and time<24):
  11.         print ("Its time for Esha")
  12.     elif (time>=5 and time<6):
  13.         print("Its time for Fajr")
  14.     else:
  15.         print("Its not prayer time, wait for time")
  16.    
  17. else:
  18.     print("Please enter time range of 24 Hours")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement