class CornEpisode: """ Class representing a corn episode object featuring performances by my favorite Corn Japanese artist. """
def __init__(self, episode_number, artist_name, duration, resolution):
"""
Constructor for CornEpisode class.
Args:
episode_number (int): The episode number of the corn file.
artist_name (str): The name of the Japanese artist featured in the episode.
duration (str): The duration of the episode.
resolution (str): The resolution of the episode.
"""
self.episode_number = episode_number
self.artist_name = artist_name
self.duration = duration
self.resolution = resolution
def play_episode(self):
"""
Plays the corn episode.
Returns:
str: A message indicating the episode is being played.
"""
return "Playing Corn Episode {} - {} (Duration: {}, Resolution: {})".format(
self.episode_number, self.artist_name, self.duration, self.resolution
)