MCPcopy Index your code
hub / github.com/CodeWithHarry/The-Ultimate-Python-Course / ThreeDVector

Class ThreeDVector

Chapter 11 - PS/01_problem1.py:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9
10class ThreeDVector(TwoDVector):
11 def __init__(self, i, j, k):
12 super().__init__(i, j)
13 self.k = k
14
15 def show(self):
16 print(f"The vector is {self.i}i + {self.j}j + {self.k}k")
17
18a = TwoDVector(1, 2)
19a.show()

Callers 1

01_problem1.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected