-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathp4.py
More file actions
30 lines (27 loc) · 939 Bytes
/
Copy pathp4.py
File metadata and controls
30 lines (27 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import sys
def hostel():
import hostel_details
n=6
while(n!=0):
print("-------------HOSTELS IN DEHRADUN-------------\n")
print("1. Vatika Girls Hostel")
print("2. Vatika Boys Hostel")
print("3. Aman Residency (Boys)")
print("4. Sarthak Boys Hostel")
print("5. Pride Girls Hostel")
print("[Press 0 to exit]")
n=int(input("Enter your choice number(hostel):"))
if(n==1):
hostel_details.vatika_girls()
if(n==2):
hostel_details.vatika_boys()
if(n==3):
hostel_details.aman_residency()
if(n==4):
hostel_details.sarthak()
if(n==5):
hostel_details.pride()
if(n!=0 and n!=1 and n!=2 and n!=3 and n!=4 and n!=5):
print(">>>>Wrong choice, enter your choice again\n")
if(n==0):
sys.exit()