Question: Q7 - Classes II: (2.5 points) the next cell define a class that meets the following specifications: - has one class attribute: a string stores

 Q7 - Classes II: (2.5 points) the next cell define a

Q7 - Classes II: (2.5 points) the next cell define a class that meets the following specifications: - has one class attribute: a string stores 'Stores attendence records for a course on a given date' - has the following methods - has two arguments passed to the initializer in this exact order; sets them as instance attributes - course : a string - date : a datetime.date object (you will need to import this before defining the class) - creates and initialises one more instance attribute: = - takes a string as argument - adds to the attendance_list - calculate_attendance( ) - returns how many students are in the - prints the contents of one name on each line - Note: please use good coding style (doesn't have to be perfect, but it has to be pretty decent) If a method does not have a specified external argument or return value you can assume it does not need it

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!