Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ Projectile
Class
Projectile
example_code/item_119/api_package/mypackage/models.py:19–22 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
17
__all__ = [
"Projectile"
]
18
19
class
Projectile:
20
def
__init__(self, mass, velocity):
21
self.mass = mass
22
self.velocity = velocity
Callers
2
api_consumer.py
File · 0.85
simulate_collision
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected