Average Lowest Highest in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Average Lowest Highest in python

hi i wanna make a program with python that give n numbers from user then earn Average Lowest Highest of that numbers

23rd Oct 2019, 10:33 AM
AmirReza Nejat
AmirReza Nejat - avatar
6 Answers
+ 3
N=int(input("how many inputs?")) List=[] for i in range(N): List.append(int(input("enter the mumber:"))) print(max(List), min(List), sum(List)/N)
23rd Oct 2019, 11:40 AM
Qasem
+ 5
# Enter integers separated by spaces. nums = [int(i) for i in input().split()] print("highest:", max(nums)) print("lowest:", min(nums)) print("average:", sum(nums)/len(nums)) print("median:", sorted(nums)[len(nums)//2]) https://code.sololearn.com/cVKjtQ9Su3lB
25th Oct 2019, 5:22 AM
David Ashton
David Ashton - avatar
+ 1
Your attempts ?
23rd Oct 2019, 10:34 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 1
i can calculate 2 or 5 or 10 numbers ! But i have Problem With n numbers
23rd Oct 2019, 10:45 AM
AmirReza Nejat
AmirReza Nejat - avatar
+ 1
Show us the code please, not just the method.
23rd Oct 2019, 11:24 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
فارسی بنویس انگلیسی خوب ننوشتی
19th Dec 2019, 3:50 PM
babi Eshghi
babi Eshghi - avatar