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
Andru [333]
3 years ago
11

Heads or tails

Computers and Technology
1 answer:
Pani-rosa [81]3 years ago
5 0

import random

heads = 0

tails = 0

i = 0

while i < 1000:

   rnd_value = random.randint(1, 2)

   if rnd_value == 1:

       heads += 1

       print("heads")

   else:

       tails += 1

       print("tails")

   i += 1

print("Heads appeared {} times and tails appeared {} times".format(heads, tails))

I hope this helps!

You might be interested in
The values that you use with a function are called arguments. true or false.
ki77a [65]
This is a true answer
6 0
4 years ago
Complete two examples of how scientists, technologists, engineers, and mathematicians may work together to create a new product
asambeis [7]

Answer:

By thinking of ways to create environment friendly products such as biodegradable water bottles

3 0
3 years ago
Which of the following has a product less than 2/3
shusha [124]
2/3 and 3/5
2(5) = 10
3(3) =9 
10 > 9
3/5 is less than 2/3


Multiply numerator of the first fraction and denominator of second fraction.

Hope that helps!!!
3 0
3 years ago
What is the most popular genre of video games?
marissa [1.9K]

Explanation: Battle Royale games are currently the market's most popular genre of games. These types of games fall under the action category.

Answer:  

A. Action

6 0
3 years ago
Read 2 more answers
Which best describes how the government sanctions technological monopolies?
stira [4]
By simply prohibiting others from entering the markets is the best example how the government sanctions technological monopolies.
This is to avoid  competitors and give the people no choice but to buy thier products
4 0
3 years ago
Read 2 more answers
Other questions:
  • What is meant by Angular 4?
    15·2 answers
  • Que funcion tiene la sombrilla forrada de aluminio​
    6·1 answer
  • What is the outside of an iPhone called?
    9·2 answers
  • Marty uses a customized database to sort parts and track inventory. The customized database is an example of _____.
    14·1 answer
  • Recall that two strings u and v are ANAGRAMS if the letters of one can be rearranged to form the other, or, equivalently, if the
    7·1 answer
  • For this scenario related to turtle drawing, indicate whether it is better to write a loop or a function (or a set of functions)
    13·1 answer
  • Which of the following would be considered the highest risk portfolio?
    9·1 answer
  • Can someone help me in my IT (information technology) homework
    10·2 answers
  • Software that uses signature-based detection contains a library of signatures of known _____?
    11·2 answers
  • What are some similarity's between NES console and consoles today
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!