Computer Science, asked by arifkhan9879967, 5 months ago

Write a code to create a 1D array of size 10 with all elements as zero. Assign 10 to 5th element. (Make necessary assumptions if any required)​

Answers

Answered by 30266
2

Sample Solution:-

Python Code:

import numpy as np

x = np.zeros(10)

print(x)

print("Update sixth value to 11")

x[6] = 11

print(x)

Similar questions