-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHouses.py
More file actions
34 lines (27 loc) · 954 Bytes
/
Copy pathHouses.py
File metadata and controls
34 lines (27 loc) · 954 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
31
32
33
34
while 1:
value1=""
Addnum = str(input("Enter Admission Number : "))
for i in Addnum:
value=""
for c in range(0,10,1):
if str(c) == i :
#convet c integers to Strings c= 9 , str(c) = "9"
value="num"
if value != "num" :
value1="Stringdetected"
if value1 == "Stringdetected" :
print("Wrong Admission Number! Please Re-enter Admission Number")
else:
Addnum=int(Addnum)
#convert Strings to Integer Value
#EG :- a = "10" | int(a) = 10
if Addnum%4 == 0:
print("House : Gamunu")
if Addnum%4 == 1:
print("House : Mahasen")
if Addnum%4 == 2:
print("House : Parakum")
if Addnum%4 == 3:
print("House : Vijaya")
print("-------------------------------------------------------")
print()