16. Susila has stored total marks of 5 subjects of students in a list
"marks". Now she needs perform the following tasks, Help Susila by
writing python statements that would help her to perform the tasks
(1) Find the maximum mark,
(II) Find the average of the class
(III) To add an mark = 456 to the list
(IV) She needs to arrange the marks in descending order.
Answers
Answered by
2
In mathematics, the irrational numbers are all the real numbers which are not rational numbers. That is, irrational numbers cannot be expressed as the ratio of two integers. ... For example, the decimal representation of π starts with 3.14159, but no finite number of digits can represent π exactly, nor does it repeat.
Answered by
1
marks = [69, 96, 58, 73, 82]
print(f"max: {max(marks)}")
print(f"average: {sum(marks) / len(marks)}")
marks.append(456)
marks.sort(reverse = True)
print(marks)
Similar questions