Login using Social Account
     Continue with GoogleLogin using your credentials
np.char.count(arr, sub ='x')
is used to count the number of times the string x
appears within the elements of the ndarray
arr
.
Let's say we have the below array:
What would be the output of the above code?
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
No hints are availble for this assesment
Loading comments...