Problem Statement:
Write a program that uses a class to store the names and
marks of students. Use the list to store the marks in three subjects...
Example:
Input:
Enter the marks of Joey in subject 1: 89 Enter the marks of Joey in subject 2: 88 Enter the marks of Joey in subject 3: 87 Enter the marks of Monica in subject 1: 78 Enter the marks of Monica in subject 2: 98 Enter the marks of Monica in subject 3: 99
Output:
Joey got [89, 88, 87] Monica got [78, 98, 99]
Note: eat(); sleep(); code(); repeat(); requests you to try this
out yourself first...
Python Code:
Comment down below if you have any doubt...
Subscribe to get notify when new article is uploaded.
April 10, 2021
Tags :
Classes And Objects
,
OOP
,
Python
,
Student Marks
Subscribe by Email
Follow Updates Articles from This Blog via Email
No Comments