From 667f29a3156bde93c1b87c3921b051e6a0810bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= <sornjure@gmail.com> Date: Tue, 25 Dec 2018 14:01:52 +0100 Subject: [PATCH] Range --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1ecb75c..c397193 100644 --- a/README.md +++ b/README.md @@ -185,12 +185,12 @@ def step(start, step): Type ---- ```python -type(<el>) # <class 'int'> / <class 'str'> / ... +<type> = type(<el>) # <class 'int'> / <class 'str'> / ... ``` ```python -import numbers -isinstance(<el>, numbers.Number) # Integral, Real, Rational, Complex -callable(<el>) # Is element a function +from numbers import Number, Integral, Real, Rational, Complex +is_number = isinstance(<el>, Number) +is_function = callable(<el>) ```