Ask Question
11 September, 23:33

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.

+3
Answers (1)
  1. 11 September, 23:54
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers