FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Merge pull request #374 from Shibu-goswami/patch-1 · aman1503/pythonprogram@4864e06 · GitHub

Repository navigation

Commit 4864e06

Browse files
Merge pull request seeditsolution#374 from Shibu-goswami/patch-1
average number
2 parents 499fe28 + 610e483 commit 4864e06

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎avgno‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
def cal_average(num):
2+
sum_num = 0
3+
for t in num:
4+
sum_num = sum_num + t
5+
6+
avg = sum_num / len(num)
7+
return avg
8+
9+
print("The average is", cal_average([17,26,3,21,35]))

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL