Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Curfew:
- def __init__(self):
- text = input(" curfw in all city , please enter your city : ")
- city_no='Makkah Medina Riyadh'
- if text.lower() in city_no.lower() :
- self.part1()
- else:
- self.part2()
- def part1(self):
- print('curfew from 3 pm to 6 am')
- def part2(self):
- print("curfew from 7 pm to 6 am")
- Curfew()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement