forked from hussien89aa/PythonTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconditional_nested_if.py
More file actions
22 lines (20 loc) · 627 Bytes
/
conditional_nested_if.py
File metadata and controls
22 lines (20 loc) · 627 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
def main():
Degree=input("enter your Degree:")
if(int(Degree)>=90 ):
print("hi")
x=5
if(int(Degree)>94):
print("Your Score is +A")
else:
print("Your Score is -A")
elif(int(Degree)>=80 and int(Degree)<=89):
print("Your Score is B")
elif(int(Degree)>=70 and int(Degree)<=79):
print("Your Score is C")
elif(int(Degree)>=60 and int(Degree)<=69):
print("Your Score is D")
elif(int(Degree)>=50 and int(Degree)<=59):
print("Your Score is E")
else:
print("You Fail")
if __name__ == '__main__':main()