FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
PythonTutorial/conditional_nested_if.py at master · medgithub/PythonTutorial · GitHub
medgithub
/
PythonTutorial
Public
forked from
hussien89aa/PythonTutorial
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
PythonTutorial
/
conditional_nested_if.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
22 lines (20 loc) · 627 Bytes
Breadcrumbs
PythonTutorial
/
conditional_nested_if.py
Copy path
File metadata and controls
22 lines (20 loc) · 627 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
()
Back
|
FazBrowse Home
|
New Git URL