Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CodeWithHarry/The-Ultimate-Python-Course
/ Vector
Class
Vector
Chapter 11 - PS/07_problem7.py:1–8 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
class
Vector:
2
def
__init__(self, l):
3
self.l = l
4
5
6
7
def
__len__(self):
8
return
len(self.l)
9
10
# Test the implementation
11
v1 = Vector([1, 2, 3])
Callers
1
07_problem7.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected