I am a pretty new student to python and was working my way through the “intro to Classes” review: https://www.codecademy.com/courses/learn-python-3/lessons/data-types/exercises/review
I have had a tough time with understanding this lesson in general, but largely worked through most of the challenges, save the last one relating to recording attendance: " Add an instance variable to
Student that is a dictionary called
.attendance , with dates as keys and booleans as values that indicate whether the student attended school that day."
Looking through the forums I found a couple interpretations of this question. I built mine with the understanding that I would enter a dictionary of key : value pairs, corresponding to the date : Boolean recording if the student had attended that day. Those values would then get appended into the instance variable as an overall record of attendance. My code is listed below, all sections from other questions in the exercise were removed. The error I receive is:
TypeError: attendance() missing 1 required positional argument: ‘prescence’
I know I am missing something(s) basic, but just cant seem to figure out what.