hard20 pts · first answer countspythonnumpy
Views and copies in NumPy
What does print(a) show?
a = np.arange(5) b = a[1:3] b[0] = 99 c = a[[3, 4]] c[0] = -1 print(a)
Discussion 0
Join free to post in the discussion.
Related questions
- Changing an item in a tupleData Scientist
- Reading a missing dictionary key safelyData Scientist
- List comprehension with a conditionData Scientist
- is versus == for two listsData Scientist
- Slicing part of a stringData Scientist
- Floor division with a negative numberData Scientist
- Checking 0.1 + 0.2 == 0.3Data Scientist
- Formatting a price with an f-stringData Scientist