FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Basic-Python-Programs/Average.py at Test · gitishman/Basic-Python-Programs · GitHub
gitishman
/
Basic-Python-Programs
Public
forked from
souravjain540/Basic-Python-Programs
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Basic-Python-Programs
/
Average.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
7 lines (7 loc) · 213 Bytes
Breadcrumbs
Basic-Python-Programs
/
Average.py
Copy path
File metadata and controls
7 lines (7 loc) · 213 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
n
=
int
(
input
(
"Enter the number of elements to be inserted: "
))
a
=
[]
for
i
in
range
(
0
,
n
):
elem
=
int
(
input
(
"Enter element: "
))
a
.
append
(
elem
)
avg
=
sum
(
a
)
/
n
print
(
"Average of elements in the list"
,
round
(
avg
,
2
))
Back
|
FazBrowse Home
|
New Git URL