A program that display how a class is made in python.
The course has attributes to hold the department, number, title, students, attendance lists, and instructor list. There is a method to mark attendance, and check if a individual student is present. Additionally a magic method is used to check prerequisites.
Example:
> python courses.py
> set(['mack', 'jack', 'zach'])
> type a for absent or p for present
> mack ?
> p
> jack ?
> a
> zach ?
> p
> {'mack': 'present', 'jack': 'absent', 'zach': 'present'}
> True
> True
> False
> False
> True
> ('Laft', 'Seipal')