Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ TwoDVector
Class
TwoDVector
Chapter 11 - PS/01_problem1.py:1–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
TwoDVector:
2
def
__init__(self, i, j):
3
self.i = i
4
self.j = j
5
6
def
show(self):
7
print(f
"The vector is {self.i}i + {self.j}j "
)
8
9
10
class
ThreeDVector(TwoDVector):
Callers
1
01_problem1.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected