Question: Python help please 5 class Band Band represents a musical group. It can contain one singer, one drummer, and any number of guitar players. When
Python help please

5 class Band Band represents a musical group. It can contain one singer, one drummer, and any number of guitar players. When the object is created, it will only contain a singer; use getters and setters to update the various band members. (It has the members defined below.) All of the data fields must be private fields. Define this class inside prob1.py . __init__(self, singer) Constructor. It should store the singer it is passed, set the drummer to None, and record that the band does not (yet) have any guitar players. get_singer (self) set_singer (self, new_singer) get_drummer(self) set_drummer(self, new_drummer) These are the getters and setters for the singer and the drummer. add_guitar_player(self, new-guitar-player) fire_all_guitar_players (self) The Band can have any number of guitar players: from 0 to as many as you like. The class begins with 0, when it is created; to add a player, you can call add_* . You cannot change players once they are added, or remove them one at a time; the only way to get rid of the guitar players is to fire all of them, all at once
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
