Programming in Python I OOP - Object Oriented Programming I Session - 18 | Hindi
In this session, we have discussed:
💠 Object Oriented Programming
🔹 Classes & Objects
🔹 Attributes & Methods
🔶 Task 🔗 replit.com/@Pa...
Task:
marks ranges from 0 to 100
Student class:
Attributes:
gender
cgpa
total credits earned till now
marks: list of marks
Methods:
opt_course(course, marks)
withdraw_course(course)
Course class:
Attributes:
total no of students who have opted the course
Methods:
calculate_course_gpa(student)
prints student's grade point and grade for each course.
Example:
Course.calculate_course_gpa(param)
Follow me on my social handles:
Bio link 🔗 param302.bio.link
Twitter 🔗 / param3021
LinkedIn 🔗 / param302
Github 🔗 github.com/Par...
Kaggle 🔗 kaggle.com/par...
21 окт 2024