Computer Science, asked by Anonymous, 4 months ago

Write a python programme to accept marks of 6 students and display them in a sorted manner.

Answers

Answered by Anonymous
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:
Similar questions