Skip to content

Improved conditional_nested_if.py #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions conditional_nested_if.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
def main():
Degree=input("enter your Degree:")
if(int(Degree)>=90 ):
Degree=int(input("enter your Degree:"))
if(Degree>=90 ):
print("hi")
x=5
if(int(Degree)>94):

if(Degree>94):
print("Your Score is +A")
else:
print("Your Score is -A")
elif(int(Degree)>=80 and int(Degree)<=89):
elif(Degree>=80 and Degree<=89):
print("Your Score is B")
elif(int(Degree)>=70 and int(Degree)<=79):
elif(Degree>=70 and Degree<=79):
print("Your Score is C")
elif(int(Degree)>=60 and int(Degree)<=69):
elif(Degree>=60 and Degree<=69):
print("Your Score is D")
elif(int(Degree)>=50 and int(Degree)<=59):
elif(Degree>=50 and Degree<=59):
print("Your Score is E")
else:
print("You Fail")


if __name__ == '__main__':main()
if __name__ == '__main__':
main()