mirror of https://github.com/01-edu/Branch-AI.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
476 B
20 lines
476 B
2 years ago
|
##### This exercise is validated if the your_numpy_array is a NumPy array. It can be checked with `type(your_numpy_array)` that should be equal to `numpy.ndarray`. And if the type of is element are as follow.
|
||
|
|
||
|
##### Try and run the following code.
|
||
|
|
||
|
```python
|
||
|
for i in your_np_array:
|
||
|
print(type(i))
|
||
|
|
||
|
<class 'int'>
|
||
|
<class 'float'>
|
||
|
<class 'str'>
|
||
|
<class 'dict'>
|
||
|
<class 'list'>
|
||
|
<class 'tuple'>
|
||
|
<class 'set'>
|
||
|
<class 'bool'>
|
||
|
```
|
||
|
|
||
|
###### Does it display the right types as above?
|