Ask Question
29 March, 10:10

Write a Python function called simulate_observations. It should take no arguments, and it should return an array of 7 numbers. Each of the numbers should be the modified roll from one simulation. Then, call your function once to compute an array of 7 simulated modified rolls. Name that array observations.

+4
Answers (1)
  1. 29 March, 11:24
    0
    import random

    def simulate_observations ():

    #this generates an array of 7 numbers

    #between 0 and 99 and returns the array

    observations = random. sample (range (0, 100), 7)

    return observations

    #here, we call the function created above and print it

    test_array = simulate_observations ()

    print (str (test_array))
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a Python function called simulate_observations. It should take no arguments, and it should return an array of 7 numbers. Each of the ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers