2.5 Some feature of the lanuage
2.5.1 Brackets
| Use | Example | |
|---|---|---|
() |
Maths | (1+2)*5 |
() |
Functions | print('Hello!') |
[] |
Lists | my_list[1] |
2.5.2 The dot (.)
The dot(.) represents ownership.
np.sqrt(9) # Lets try again
## 3.0The dot(.) just tells us that the square root function (sqrt) belongs to np.