Problem 4: Multiple Student Objects Comparison
Easypython
Problem Description
Create a class Student with attributes name and marks. Create three different Student objects with different data, then write a function (outside the class) that takes a list of Student objects and prints the name of the student with the highest marks.
Input
Three students, each with a name and marks value.
Output
The name of the student with the highest marks.
Constraints
- All marks are distinct integers between 0 and 100.
Example Input
text("Aarav", 78), ("Meera", 92), ("Kabir", 85)
Example Output
textTopper: Meera
Concepts Covered
Classes, objects, lists of objects, attribute access, comparison logic.