In [2]:

```
import numpy as np
r = 5
h = 20
volume = np.pi * r**2 * h
# Thus we have calculated the **volume** of the *cylinder* by using the formula $$ V = \pi r^2 h $$
# Now we'll calcualte the area as per $A = \pi r^2 + 2 \pi r h$.
A = np.pi * r**2 + 2 * np.pi * r * h
```