Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LinkedInLearning/learning-python-2896241
/ drive
Method
drive
Ch2 - Basics/classes_finished.py:10–12 ·
view source on GitHub ↗
(self, speed)
Source
from the content-addressed store, hash-verified
8
self.bodystyle = bodystyle
9
10
def
drive(self, speed):
11
self.mode =
"driving"
12
self.speed = speed
13
14
15
class
Car(Vehicle):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected