Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anton Zhukov - Solution #1732

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Windings-Lab
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job on implementing the majority of the task requirements! 🎉 The code is well-structured and mostly adheres to the task description. Just a small tweak is needed in the CinemaHall class to ensure the movie_session method calls the watch_movie method for each Customer and the clean_hall method for the Cleaner. Once you add these method calls, your solution will be perfect. Keep up the good work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines 14 to 19
print(f"\"{movie_name}\" started in hall number {self.number}.")
for customer in customers:
print(f"{customer.name} is watching \"{movie_name}\".")
print(f"\"{movie_name}\" ended.")
print(f"Cleaner {cleaning_staff.name} "
f"is cleaning hall number {self.number}.")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The movie_session method should call the watch_movie method on each Customer instance and the clean_hall method on the Cleaner instance, as specified in the task description. Currently, these method calls are missing. You need to add customer.watch_movie(movie_name) inside the loop and cleaning_staff.clean_hall(self.number) after the loop to meet the task requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants