From b6999702b4001b036df7741cb5fd043c66fe6612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 10:56:27 +0100 Subject: [PATCH] Sequence --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7652150..7762f9f 100644 --- a/README.md +++ b/README.md @@ -652,14 +652,14 @@ class MyComparable: ### Sequence ```python class MySequence: - def __init__(self, seq): - self.seq = seq + def __init__(self, a): + self.a = a def __len__(self): - return len(self.seq) + return len(self.a) def __getitem__(self, i): - return self.seq[i] + return self.a[i] def __iter__(self): - for el in self.seq: + for el in self.a: yield el ```