In a class test teacher announces the marks(negative marking allowed) of n(n>0) students. A student can achieve max 100 marks. Write a python function Print_marks(*marks) that takes no. of students, marks of students and return the marks and check the marks are valid or not. If valid then it calls the recursive function rec_sort(*marks) which returns the students marks as a comma-separated string with elements in ascending order (You can use built-in function max/ min too do this). Specify input in fixed form don't use input function.
Comments
Leave a comment