Friday, February 21, 2014

Python - a list of call-centre Agents (2)

It works!

After many test and searches - the corrected code works


and it can be tested here
http://labs.codecademy.com/CBXj#:workspace

What does it do?

The program creates a call-centre, by populating it with new employees (2 ways of adding them - when the object Centre is initialized, or by using the method hire() later)

Then after the object (my_ccg (My Call-Centre Grinder)) is created - it's possible to fire or hire employee and to display the staff (using the method display()).

NB : I posted a question to Codecadamy forum at http://www.codecademy.com/groups/simple-python-projects/discussions/530723017c82ca60f300287c

No comments: