This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Robot: | |
| def __init__(self, name, model_no, creator): | |
| self.name = name | |
| self.model_no = model_no | |
| self.creator = creator | |
| def walk(self): | |
| return 'I am walking using my wheels' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Shape: | |
| def area(self): | |
| pass | |
| def perimeter(self): | |
| pass | |
| class Square(Shape): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from abc import ABC, abstractmethod | |
| class Shape(ABC): | |
| @abstractmethod | |
| def area(self): | |
| pass | |
| @abstractmethod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from abc import ABC, abstractmethod | |
| class Shape(ABC): | |
| @abstractmethod | |
| def area(self): | |
| pass | |
| @abstractmethod |
OlderNewer