Page 1 of 1

I have this task but I am getting this error

Posted: Sat May 14, 2022 3:05 pm
by answerhappygod
I have this task
I Have This Task But I Am Getting This Error 1
I Have This Task But I Am Getting This Error 1 (64.13 KiB) Viewed 55 times
but I am getting this error
Complete the program shown in the 'Answer' box below by filling in the blank so that the program prints 4 [1 8] There are multiple solutions; any one will do. Answer: 1 import numpy as npl 2 3. def meow(cats, dogs): 4 print(len(cats)) 5 woof = np. logical_or(cats != dogs, dogs < 0) 6 print(cats[woof]) 7 8 meow(meow(['a', np.array([2, 8]), 'c', 'd'], 5) NMONDO Check Expected Got x 4 [1 8] 4 [28] *** RUN TIME ERROR(S) *** <string>:6: DeprecationWarning: In future, it will be an error for 'np.bool_' scalars to Traceback (most recent call last): File "_source.py", line 8, in <module> meow(meow(['a', np.array( [2, 8]), 'c', 'd'], 5)) TypeError: meow() missing 1 required positional argument: 'dogs