Skip to content

Instantly share code, notes, and snippets.

@mcsee

mcsee/safecar.py

Created Nov 22, 2020
Embed
What would you like to do?
class car:
def __init__(self,company,color,engine):
self._company = company
self._color = color
self._engine = engine
def goTo(self, coordinate):
self.move()
def startEngine(self):
## code to start engine
self.engine.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment