**Please refer the course material from WEEK 8 - NumPy to understand the problem better, I was not able to write the entire code or the problem statement**

This is regarding one of the Numpy exercises on Week 8.

Problem : To find the number of data that are present outside the circle of radius 1 for 2D and other higher order Dimensions

```
def area_outside_square(npoints,ndim):
points = np.random.rand(npoints,ndim)
return np.sum(np.sqrt(np.sum(points*points ,axis = 1)))
```

This was the function which returns the no of points outside radius 1

```
for i in range(2,11):
print(i, area_outside_square(100000,i))
```

This was function call for it

Correct me if Iâ€™m wrong but the input here is only two dimensions and ouput is for different columns right ?

**But in the course, it was conveyed as different dimensionsâ€¦Can anyone clarify me on that ?**