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
What are techniques for active listening? Select all
erastova [34]

Answer:

asking clarifying questions, without interruption

6 0
3 years ago
How do I sign into raterhub on my phone and my mobile device at the same time to complete phase 2 of my raters exam for sykeshom
sashaice [31]

Answer:

Explanation:

when you sign up for raterhub, and follow all the due process for registration, in order for you to sign into your mobile phone, you will be given a link or an address that you can enter on your phone. By entering the address, your phone should sign in or should synchronize with the raterhub.

5 0
4 years ago
--------------communication involves one speaker andaudience.
dalvyx [7]

Answer:

Person-to-Group

Explanation:

Person-to-Group communication involves one speaker and audience.

6 0
3 years ago
Regardless of if you use social media or not, would you rather be conservative rather than outgoing on social media? Why or Why
Alla [95]

Answer: I imagine conservative is the correct answer.

Explanation: However it's not the answer I agree with. As long as you stay anonymous online, there's no punishment to being outgoing.

4 0
3 years ago
How do you play game on phone<br>​
ser-zykov [4K]
You download a game from the App Store
5 0
3 years ago
Read 2 more answers
Other questions:
  • In these ones all your finding is the mean(average).
    14·1 answer
  • Convert 234.43 (base 7) to base 10
    7·1 answer
  • Word processing programs have different view options that you can use depending on the tasks you’re performing. Which option hel
    11·1 answer
  • Being aware of and understanding why potential buyers on a web site do not complete their purchases requires the expertise of __
    11·2 answers
  • A(n) ________ software installation enables you to decide which features you want to install on the hard drive
    10·1 answer
  • I want to know why almost every single "expert answer verified" thing I come across is wrong. If it's wrong, why the h is it exp
    8·2 answers
  • Which of these terms is a design principle?
    7·1 answer
  • Define operator precedence ? explain with an example.​
    13·1 answer
  • Define ; proprietary software.​
    6·1 answer
  • What features should you present when demonstrating 2023 murano’s confident cornering?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!