ASSIGNMENT
Q.18
18.Write a program to create a list of students’ marks with user-defined values and find the maximum.
# Program to find maximum marks from a list marks = [] n = int(input("Enter the number of students: ")) for i in range(n): mark = float(input("Enter marks of student " + str(i + 1) + ": ")) marks.append(mark) print("\nMarks List:", marks) if len(marks) > 0: maximum = max(marks) print("Maximum Marks:", maximum) else: print("No marks entered.")


