Ask Question
7 September, 08:35

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. 7 September, 10:00
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers