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 #560

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

Conversation

AndriiIshchenko
Copy link

No description provided.

app/main.py Outdated
def __init__(self, name: str, weight: int, coords: list = None) -> None:
self.name = name
self.weight = weight
self.coords = coords if coords else [0, 0]
Copy link

Choose a reason for hiding this comment

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

I think better use or in this case

app/main.py Outdated
class FlyingRobot(BaseRobot):
def __init__(self, name: str, weight: int, coords: list = None) -> None:
super().__init__(name, weight)
self.coords = coords if coords else [0, 0, 0]
Copy link

Choose a reason for hiding this comment

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

I think better use or in this case

@AndriiIshchenko
Copy link
Author

AndriiIshchenko commented Jul 26, 2023

Я не розумію такі нюанси пояснюють на full time курсі? Одразу таке не придумаешь Побільше таких зауважень будь ласка

Copy link

@vsmutok vsmutok left a comment

Choose a reason for hiding this comment

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

Good Job 👍

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