I have this task
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
I have this task but I am getting this error
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
I have this task but I am getting this error
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!