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

Solution #1649

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Solution #1649

wants to merge 1 commit into from

Conversation

Mazurkav
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 Car and CarWashStation classes! 🎉 Your code meets the task requirements and constraints, and the methods are implemented correctly. There's a minor redundancy in the wash_single_car method, but it doesn't affect the functionality. Keep up the good work, and consider simplifying the code by removing the redundant condition in the future. Happy coding! 😊

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

Comment on lines +26 to +28
def wash_single_car(self, car):
if car.clean_mark < self.clean_power:
car.clean_mark = self.clean_power

Choose a reason for hiding this comment

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

The condition if car.clean_mark < self.clean_power: in the wash_single_car method is redundant because it is already checked in the serve_cars method before calling wash_single_car. You can remove this condition to simplify the code.

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