A relative URL is a type of URL that gives an abbreviated path to a resource by using the current webpage as a starting position.
<h3>What is a
relative URL?</h3>
A relative URL can be defined as a type of URL that doesn't contain or use the full address of a website, but only the path (location) following the domain name.
This ultimately implies that, a relative URL is a type of URL that gives an abbreviated path (location) to a web resource by using the current webpage as a starting position.
Read more on relative URL here: brainly.com/question/26670945
#SPJ12
The answer & explanation for this question is given in the attachment below.
Answer:
A computer is an electronic device that accept raw data and instructions and process it to give meaningful results.
Answer:
import numpy as np
def genRandomVect():
arr = np.random.choice(range(100),size=(50,),replace=False)
return arr
print("Random 1D numpy array where each element is an integer sampled from: [0, 100) ")
print( genRandomVect() )
Explanation:
- Create a function to create a numpy array with random integers in range[0,100) with no duplicates
- Use the random.choice to select random values from range[0,100) and size attribute to take the size of the required array
.
- Finally return the numpy array.