# Operators — Python Fundamentals: From Basics to Async

Source: https://www.skillbyai.com/en/python/py-operators

> Use arithmetic, comparison, logical and membership operators, including chained comparisons and floor division.

## Division variants

`/` always gives a float; `//` floors; `**` is power.

```python
7 / 2     # 3.5
7 // 2    # 3
7 % 2     # 1
2 ** 10   # 1024
```

## Logic & membership

`and`, `or`, `not` are words. Chaining works: `0 < x < 10`. Membership: `3 in [1,2,3]`.
