FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
devskill-python-course/Basic Python/Problem4.py at master · maf345/devskill-python-course · GitHub
maf345
/
devskill-python-course
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
devskill-python-course
/
Basic Python
/
Problem4.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
32 lines (29 loc) · 350 Bytes
Breadcrumbs
devskill-python-course
/
Basic Python
/
Problem4.py
Copy path
File metadata and controls
32 lines (29 loc) · 350 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
23
24
25
26
27
28
29
30
31
32
# Author: Mehedi Afzal Farazi
# Problem: Print 1 to 10 and then 9 to 1:
# Code:
for
i
in
range
(
1
,
20
):
if
i
>=
1
and
i
<=
10
:
print
(
i
)
if
i
>=
11
and
i
<=
19
:
print
(
20
-
i
)
# ******************* #
# Sample Output:
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
# 10
# 9
# 8
# 7
# 6
# 5
# 4
# 3
# 2
# 1
Back
|
FazBrowse Home
|
New Git URL