Write a python programme to accept marks of 6 students and display them in a sorted manner.
Answers
Answered by
6
Required python programme is as follows:
m1 = int(input("Marks of 1st student : "))
m2 = int(input("Marks of 2nd student : "))
m3 = int(input("Marks of 3rd student : "))
m4 = int(input("Marks of 4th student : "))
m5 = int(input("Marks of 5th student : "))
m6 = int(input("Marks of 6th student : "))
SortedMarks = [m1, m2, m3, m4, m5, m6]
SortedMarks.sort()
print(SortedMarks)
Output attached !!
Attachments:
![](https://hi-static.z-dn.net/files/dca/c7fc3bf2e465baae6714c46b3695cd30.png)
Similar questions
Computer Science,
2 months ago
Social Sciences,
2 months ago
Chemistry,
2 months ago
Physics,
4 months ago
Math,
4 months ago
Math,
11 months ago