Advertisement
aljedani48

Curfew

Mar 28th, 2020
664
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. class Curfew:
  2.     def __init__(self):
  3.         text = input(" curfw in all city , please enter your city  :  ")
  4.         city_no='Makkah Medina Riyadh'
  5.        
  6.         if text.lower() in city_no.lower() :
  7.             self.part1()
  8.         else:
  9.             self.part2()
  10.  
  11.  
  12.     def part1(self):
  13.         print('curfew from 3 pm to 6 am')
  14.     def part2(self):
  15.         print("curfew from 7 pm to 6 am")
  16.  
  17. Curfew()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement