Skip to content

Commit b699970

Browse files
committed
Sequence
1 parent 4ca2751 commit b699970

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,14 @@ class MyComparable:
652652
### Sequence
653653
```python
654654
class MySequence:
655-
def __init__(self, seq):
656-
self.seq = seq
655+
def __init__(self, a):
656+
self.a = a
657657
def __len__(self):
658-
return len(self.seq)
658+
return len(self.a)
659659
def __getitem__(self, i):
660-
return self.seq[i]
660+
return self.a[i]
661661
def __iter__(self):
662-
for el in self.seq:
662+
for el in self.a:
663663
yield el
664664
```
665665

0 commit comments

Comments
 (0)