Questions
Questions
Single choice

What would be the answer of this cummulative summation in NumPy? arr = np.array([1,2,3]) print(np.cumsum(arr))

Options
A.[3 6 9]
B.[6]
C.[1 3 6]
D.6
View Explanation

View Explanation

Verified Answer
Please login to view
Step-by-Step Analysis
The question asks about the output of a NumPy cumulative sum operation on the array [1, 2, 3]. Option 1: "[3 6 9]" would correspond to summing in a way that triples each element or accumulates beyond the actua......Login to view full explanation

Log in for full answers

We've collected over 50,000 authentic exam questions and detailed explanations from around the globe. Log in now and get instant access to the answers!

More Practical Tools for Students Powered by AI Study Helper

Join us and instantly unlock extensive past papers & exclusive solutions to get a head start on your studies!