Saturday, April 10, 2021

thumbnail

Use Class to Store Name and Marks of Students and Store them in List | OOP | Classes and Object

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.

Subscribe by Email

Follow Updates Articles from This Blog via Email

No Comments

Sieve Of Eratosthenes | Mathematics | Data Structures and Algorithm | Python

Problem Statement: The  Sieve of Eratosthenes  is a method for finding all primes up to (and possibly including) a given natural n . n .  Th...