Tensor
Prep
Dashboard
Learn
Practice
Pricing
← Prev
31 / 170
Next →
31. Ignore NumPy Warnings
Easy
Description
Discussion
Compute and return
np.ones(n) / 0
:
suppress all numpy floating-point errors while you do it
every element of the result is
inf
Input
1
Output
[inf]
♡ …
⚑ Report a problem
Run
Submit
Reset
Implement
solve(...)