From d16bfa5b6dce2e0dcb4a8b1ca41c28369f72fe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 3 May 2018 18:24:53 +0200 Subject: [PATCH] String, class --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58689d3..e8e60e3 100644 --- a/README.md +++ b/README.md @@ -163,7 +163,7 @@ isinstance(, numbers.Number) # Integral, Real, Rational, Complex String ------ ```python -str.replace(text, old, new) +.replace(old_str, new_str) .split(sep=None, maxsplit=-1) .strip() .join() @@ -417,7 +417,7 @@ class : self.a = a def __repr__(self): return str({'a': self.a}) - # Use f'{s.__dict__}' for all members. + # Use f'{s.__dict__}' for all members. def __str__(self): return str(self.a) ```