Skip to content
Snippets Groups Projects
Commit 40a3ec24 authored by Martin Mareš's avatar Martin Mareš
Browse files

Objekty: Dělení na řádky ještě jednou

parent 519af610
No related branches found
No related tags found
No related merge requests found
......@@ -20,8 +20,8 @@ class Zvire:
return f"Zvire({self.jmeno}, {self.zvuk})"
def __eq__(self, other):
return self.jmeno == other.jmeno and \
self.zvuk == other.zvuk
return (self.jmeno == other.jmeno and
self.zvuk == other.zvuk)
class Kocka(Zvire):
"""Vytvoří kočku s danými vlastnostmi."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment