I have this task but I am getting this error

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

I have this task but I am getting this error

Post 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 53 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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply