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
larisa86 [58]
3 years ago
4

Question 3. Using simulation with 10,000 trials, assign chance_of_all_different to an estimate of the chance that if you pick th

ree words from Pride and Prejudice uniformly at random (with replacement), they all have different lengths. Hint: Remember that !
Computers and Technology
1 answer:
sukhopar [10]3 years ago
4 0

Hint Given

Hint: Remember that !=only checks for non-equality between two items, not three. However, you can use !=more than once in the same line.For example, 2 != 3 != 4first checks for non-equality between 2and 3, then 3and 4, but NOT 2and 4.

Answer:

#Program is written in Python

# Comments are used for explanatory purpose

# Program starts here

string = open('PrideAndPrejudice.txt', encoding='utf-8').

read()

#Split words

possiblewords = np.array(string.split())

In []:

# Initialise trial simulation to 10000

simulation = 10000

# Initialise diff to 0

diff = 0

# iterate for possible words in PrideAndPrejudice

for i in np.arange(simulation):

words = np.random.choice(possiblewords, 3) #3 words to search for

#implement the condition in hint above

iflen(words.item(0)) != len(words.item(1)) != len(words.item(2)) != len(words.item(0)):

#calcuate result

diff = diff + 1

chance_of_all_different = diff/simulation

chance_of_all_different

You might be interested in
To create an identical version of a slide you would click
Tresset [83]
You would click clone
3 0
4 years ago
Read 2 more answers
Use the Windows ________ to check on a nonresponsive program. Select one: A. Backup utility B. Task Manager C. System Restore D.
Nitella [24]
The answer is task manager. You can access it by pressing the Windows key and searching "task manager". You can also press ctrl+alt+delete or ctrl+shift+esc to access it.

Taskanager will show you all the applications currently running and how many resources they are using. If a task is unresponsive, it can be force closed from task manager.
4 0
3 years ago
What are the programs required to work in computer
BARSIC [14]

Answer:

Specific requirements vary by employer, but completing a degree program or a coding academy is generally necessary to begin a career as a computer programmer.

Explanation:

please mark me as brainliest

8 0
3 years ago
Https://meetme.bit.nl/OfficialTrapstarz Join yall its my birthday
laila [671]

Answer:

HAPPY BIRTHDAY EVEN THO WE JUST MET

5 0
3 years ago
Read 2 more answers
One modeling technique drawn from systems analysis and design that can provide an excellent way to illustrate how a business fun
stealth61 [152]

Answer:

collaboration diagram

Explanation:

Collaboration diagram -

It refers to the diagram , which showcase the link between the unified modeling language with the software object , is referred to as the collaboration diagram.

It is also called the communication diagram .

These diagram are very important for a company as it is the  pictorial representation.

Various software are used to make these diagrams.

5 0
3 years ago
Other questions:
  • What does the security element of non-repudiation mean in e-commerce cybersecurity? A. Data needs to be available at all times.
    10·1 answer
  • The correct syntax for accessing the length of an array named numbers is:
    15·1 answer
  • Data silos are often associated with ________________.
    12·1 answer
  • Given the following characteristics for a magnetic disk pack with 10 platters yielding 18 recordable surfaces (not using the top
    14·1 answer
  • true or false? spreadsheets provide more options for graphical representation of the data than databases​
    6·1 answer
  • Problem: you need to write a code that read 2 array of size 10x10 of zero and ones that represent black
    8·1 answer
  • Need help with Brainly!! Thanks in advance for sharing your thoughts or answering any of my questions on this. [][] Firstly, Bra
    14·1 answer
  • A certain social media Web site allows users to post messages and to comment on other messages that have been posted. When a use
    7·1 answer
  • What is the location in the base interface of the link to
    7·1 answer
  • Select all the correct answers. Which two statements are true about electric current through a circuit? Current flows from a pos
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!