-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcorrectbranch.py
63 lines (43 loc) · 1.92 KB
/
correctbranch.py
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from models import *
def CorrectedBranch(enteredBranch):
enteredBranch = enteredBranch.lower()
enteredBranch = str(enteredBranch)
print("current EnteredBranch is " + enteredBranch)
if(enteredBranch in [x.lower() for x in aeroWords]):
enteredBranch = "Aeronautical"
elif(enteredBranch in [x.lower() for x in autoWords]):
enteredBranch = "Automobile"
elif(enteredBranch in [x.lower() for x in biomedWords]):
enteredBranch = "Biomedical"
elif(enteredBranch in [x.lower() for x in biotechWords]):
enteredBranch = "Biotechnology"
elif(enteredBranch in [x.lower() for x in chemWords]):
enteredBranch = "Chemical"
elif(enteredBranch in [x.lower() for x in civilWords]):
enteredBranch = "Civil"
elif(enteredBranch in [x.lower() for x in cceWords]):
enteredBranch = "CCE"
elif(enteredBranch in [x.lower() for x in cseWords]):
enteredBranch = "CSE"
elif(enteredBranch in [x.lower() for x in dseWords]):
enteredBranch = "DSE"
elif(enteredBranch in [x.lower() for x in eeWords]):
enteredBranch = "EEE"
elif(enteredBranch in [x.lower() for x in eceWords]):
enteredBranch = "ECE"
elif(enteredBranch in [x.lower() for x in eieWords]):
enteredBranch = "EIE"
elif(enteredBranch in [x.lower() for x in ipWords]):
enteredBranch = "Industrial Production"
elif(enteredBranch in [x.lower() for x in itWords]):
enteredBranch = "IT"
elif(enteredBranch in [x.lower() for x in mechWords]):
enteredBranch = "Mechanical"
elif(enteredBranch in [x.lower() for x in mechxWords]):
enteredBranch = "Mechatronics"
elif(enteredBranch in [x.lower() for x in mediaWords]):
enteredBranch = "Media Technology"
elif(enteredBranch in [x.lower() for x in aiWords]):
enteredBranch = "AI"
print("The corrected is " + enteredBranch)
return enteredBranch