Skip to content

Commit 34f7449

Browse files
committed
Sequence
1 parent fe74af3 commit 34f7449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ class MySequence:
869869
return len(self.a)
870870
def __getitem__(self, i):
871871
return self.a[i]
872+
def __setitem__(self, i, value):
873+
self.a[i] = value
872874
def __iter__(self):
873875
for el in self.a:
874876
yield el

0 commit comments

Comments
 (0)