The array as well as the positions of the first and the last elements of the area to be extracted should be passed as parameters. I'm so lost with this question that i dont even know where to begin. This is what I have so far:
import numpy as np
import random
n = input("enter the size of the array \n")
n = int(n)
randomlist = random.sample(range(1, 100), n)
Aucun commentaire:
Enregistrer un commentaire