Part I: Members, Students and Instructors
You're starting your own web development school called Codebar! Everybody at Codebar -- whether they are attending workshops or teaching them -- is a
- Each member has a
- Each member should be able to
introducethemselves (e.g., "Hi, my name is Kevin!").
Member is also either a
Student or an
- Each student has a
reasonfor attending Codebar (e.g., "I've always wanted to make websites!").
- Each instructor a
bio(e.g., "I've been coding in Python for 5 years and want to share the love!").
- Each instructor also has a set of
- An instructor can gain a new skill using
Part II: Workshops
Codebar also has Workshops. Each workshop has...
- A group of instructors.
- A roster of students.
add_participant method that accepts a member as an argument. If the Member is an Instructor, add them to the instructors list. If a Member is a Student, add them to the students list.
Create another method
print_details that outputs the details of the workshop.
Test Your Code
Make your code work for the following calls and print out the response you can see in the comments below...
print_details method currently does a number of different things, like printing out workshop details, the list of Students and the list of Coaches.
Create separate methods to print the workshop details (date and classroom), a method to print out the students and one to print out the coaches. Call these from
print_details instead of having all the code there.
Hint: look into defining private class methods.