Browse Source

Range

pull/3/head
Jure Šorn 6 years ago
parent
commit
667f29a315
1 changed files with 4 additions and 4 deletions
  1. 8
      README.md

8
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>)
```

Loading…
Cancel
Save