Question: Question No . 4 : Classes and Objects. Write a Python program that defines a class called Course. Each Course object should have the following

Question No.4: Classes and Objects.
Write a Python program that defines a class called Course. Each Course object should have the
following attributes:
Name: The name of the course (a string).
Instructor: The course instructor (a string).
Students: The number of students enrolled in the course (an integer).
Code: The course code (a string).
Test your program with the following:
Name: Introduction to AI and Data Science
Instructor: Your instructor name
Students: 40
Code: NGN112

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!