diff --git a/media_player.py b/media_player.py index 32c195f..36664e8 100644 --- a/media_player.py +++ b/media_player.py @@ -12,15 +12,15 @@ class IMediaPlayer(ABC): @abstractmethod def play_audio(self): - pass + raise NotImplementedError @abstractmethod def display_video(self): - pass + raise NotImplementedError @abstractmethod def view_image(self): - pass + raise NotImplementedError class AudioPlayer(IMediaPlayer): @@ -65,6 +65,6 @@ def view_image(self): class MediaListPlayer: def play_list(self, media_list, players): - for i in range(len(media_list)): + for media in media_list: # Implementation... pass