1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
weqwewe [10]
4 years ago
7

Write a Python function called simulate_observations. It should take no arguments, and it should return an array of 7 numbers. E

ach 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.
Computers and Technology
1 answer:
Bas_tet [7]4 years ago
6 0

Answer:

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))

You might be interested in
How to transfer mysql database from one server to another
kramer

Answer:

First, create a new database using CREATE DATABASE statement. Second, export all the database objects and data of the database from which you want to copy using the mysqldump tool. Third, import the SQL dump file into the new database.

6 0
2 years ago
You use the _____ sheet in the format cells dialog box to position data in a cell by centering it, for example.​
Oliga [24]
You use the Alignment sheet in the format cells dialog box to position data in a cell by centering it, for example. Generally along the middle branch is a line or centerline of the definite pipeline on a scale of whatever is indicated.
3 0
3 years ago
What does it mean "Be Proactive"?
joja [24]

Answer:controlling a situation by making things happen or by preparing for possible future problems

Explanation:

4 0
3 years ago
Read 2 more answers
How do access the dictionary and thesaurus in Word?
horrorfan [7]
Click the FILE tab. Click Options in the list on the left side of the screen. On the WordOptions dialog box, click Proofing in the list of options on the left. 
3 0
3 years ago
Read 2 more answers
What is an interactive site where users write about personal topics
ycow [4]
This is called a blog.
6 0
3 years ago
Other questions:
  • How far is florida from oklahoma?
    10·2 answers
  • What activities are the most likely to infect your computer with a virus? Check all that apply
    11·2 answers
  • The faster the clock speed, the more of these the processor can execute per second. what are they?
    15·2 answers
  • What material replaced stone as the primary materials used to make tools and machines by humans
    5·1 answer
  • If my computer is next to my book, what preposition would I use?<br> O xià<br> 0 shàng<br> pangbian
    7·1 answer
  • 7) through: (0, 4) and (-1,0)​
    10·1 answer
  • According to your text, three factors are responsible for the rapid rise in new product development. They are faster and more ec
    9·1 answer
  • 6. What type of application is designed for making slide shows?​
    12·2 answers
  • Which of the following are NOT possible using the RANDOM(a, b) and DISPLAY(expression) abstractions?
    10·1 answer
  • Which item can you add using the tag?
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!