'''
Assignment No:3
To accept N numbers from user. Compute and display maximum in list, minimum in list,
sum and average of numbers using built-in function.
'''
try:
n = int(input("Enter no of elements: "))
nos_list = [] # nos_list list is created
for i in range(n): # for loop
num = int(input("Enter no: "))
nos_list.append(num) # numbers are added in nos_list list
maxNo = max(nos_list) # maximum number in list
minNo = min(nos_list) # minimum number in list
sumNos = sum(nos_list) # sum of numbers in list
average = sumNos/len(nos_list) # average of numbers in list
print('Max no is ',maxNo)
print('Min no is ',minNo)
print('Count: ',len(nos_list)) # length of list
print('Sum of nos is ',sumNos)
print('Average of nos is ',average)
except ValueError:
print('Enter n and all elements as integer.')
Assignment No:3
To accept N numbers from user. Compute and display maximum in list, minimum in list,
sum and average of numbers using built-in function.
'''
try:
n = int(input("Enter no of elements: "))
nos_list = [] # nos_list list is created
for i in range(n): # for loop
num = int(input("Enter no: "))
nos_list.append(num) # numbers are added in nos_list list
maxNo = max(nos_list) # maximum number in list
minNo = min(nos_list) # minimum number in list
sumNos = sum(nos_list) # sum of numbers in list
average = sumNos/len(nos_list) # average of numbers in list
print('Max no is ',maxNo)
print('Min no is ',minNo)
print('Count: ',len(nos_list)) # length of list
print('Sum of nos is ',sumNos)
print('Average of nos is ',average)
except ValueError:
print('Enter n and all elements as integer.')
Easy to learning..
ReplyDeleteEasy to learn,
ReplyDeleteVery easy to learn
ReplyDeleteEasy to understand
ReplyDeleteEasy to understanding & learning
ReplyDeleteEasy to understand
ReplyDeleteEasily Understand
ReplyDeleteConcept was easy... Understandable
ReplyDeleteEasy concept... Understandable
ReplyDeleteEasy
ReplyDeleteEasy to understand and perform also
ReplyDelete
ReplyDeleteUrmila17 October 2019 at 01:39
Easy concept... Understandable
Very nice program and easy to understand
ReplyDeleteNice teaching
ReplyDeleteUnderstandable & usefull
ReplyDeleteEasy 🙂
ReplyDeleteUnderstood
ReplyDelete👍
ReplyDeleteSimple
ReplyDeleteEasy to understand
ReplyDeleteUnderstanding
ReplyDeleteVery Easy
ReplyDeleteeasy to understanding
ReplyDeleteVery nice practical
ReplyDeleteOutput of this programme max and min value are directly display
ReplyDeleteSo...
This programme is very easy
👉nice programme👈
ReplyDeleteFinding Max No & Min No in List Using Built-In Function I enjoyed this programme and also easy to understand 😊☺️😊
ReplyDeleteVery easy nice and creative program
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteConcepts are clear
ReplyDeleteUnderstandable
ReplyDeleteSimple
ReplyDeleteUnderstand
ReplyDeleteUnderstand properly
ReplyDeleteIt's a best program
ReplyDeleteEasy to calculate the max and min no in list.
ReplyDeleteVery interesting
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteEasy to understand
ReplyDeleteVery nice program
ReplyDeleteVery nice program
ReplyDeleteEasy.... . Program
ReplyDeleteEasy to program
ReplyDeleteEasy.... . Program
ReplyDeleteUnderstand
ReplyDelete👍
ReplyDeleteUnderstand very well 🙏
ReplyDeleteUnderstand
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteB-1 shrutika gaikwad
ReplyDeleteGood
Easy to understand 👍
ReplyDeleteVishay hard 👌
ReplyDeleteB-36
ReplyDeleteB-56-Lalit Patil
ReplyDeleteIt makes programming too easy...
It's too good sir 🔥
B-19-shrutika hollar
ReplyDeleteIt's really excellent
B-11-Pratik Ghule
ReplyDeleteunderstood
B-02-Ganesh Gaikwad
ReplyDeleteUnderstand
B-13-Sonali Ghumare
ReplyDeleteEasily understand
B20:-it was understanding lecture
ReplyDeleteB-24 understood
ReplyDeleteB-19-Shrutika Holkar
ReplyDeleteClearly understood
Very simple concepts
This comment has been removed by the author.
ReplyDeleteB-1 shrutika gaikwad
ReplyDeleteIt was ok
B-56-Lalit Patil
ReplyDeleteUnderstood
B-29 Pooja kedar
ReplyDeleteUnderstood
B-47 vaibhav more
ReplyDeleteUnderstood sir
A1-roll no-02
ReplyDeletethank you so much
batch-A1
ReplyDeleteroll no-05
thank you sir
batch =A1
ReplyDeleteRoll No= 09