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
Personal computer hard disk platters typically have storage capacities ranging from 40 gb to ____.
Doss [256]
2tb I think I'm not that sure
7 0
4 years ago
Which best describes IMEI?
Delicious77 [7]

Answer:

A unique identifier for a mobile phone

Explanation:

There are different codes and tracking number assigned to different devices such as laptop, mobiles and other devices. The purpose of this task is to make sure the security of device in all aspects. The tracking number that is used to track mobile phone is named as IMEI that stands for International Mobile Equipment Identity.

IMEI is the the unique identity of mobile phone device that consists of 15 digits. It is the unique number that is assigned to phones.

8 0
3 years ago
Linux is a kind of software whose code is provided for use, modification, and redistribution, at no cost. What kind of software
Scilla [17]

Answer:

Linux is a type of open-source software. The entire premise of open-source code is to make it as easy for people to develop and share as possible, instead of use as a vehicle to make money. This way, the collective knowledge of the community can make the program as secure and user-friendly as possible.

Explanation:

6 0
3 years ago
Which selection below has the greatest storage capacity
shutvik [7]
Where is the selection?

Message me when you have the full question.
8 0
3 years ago
Which option refers to a combination of the three main services in cloud computing? A. SaaS B. XaaS C. IaaS D. MaaS E. PaaS
matrenka [14]

Answer:

XaaS

Explanation:

XaaS combines one or three main services in cloud computing, which are SaaS, IaaS, and PaaS. XaaS is a service not commonly used but is emerging quick and fast. XaaS is often generalized as a term that means the delivery of “anything-as-a-service.” Rather than providing solutions locally within a company, XaaS uses cloud computing technology to offer services. Xaas includes anything from an organization renting computing solutions over the internet through the cloud to a web programmer opening up an editor in his browser without the need to install the editor on his computer. Services ordered over the internet and purchased according to the needs of the consumer is referred to as XaaS.

7 0
3 years ago
Read 2 more answers
Other questions:
  • A collection of coordinating colors that can be used in an Excel document is called a color
    8·1 answer
  • What is an extrinsic value? A. something that is valuable in and of itself B. something that is valuable because it leads to ano
    12·1 answer
  • Write an expression that computes the average of the values 12 and 40.
    6·1 answer
  • Why is failure important when you are designing a solution to a problem?
    6·2 answers
  • Create a view named MAJOR CUSTOMER. It consists of the customer number, name, bal. ance, credit limit, and rep number for every
    12·1 answer
  • In C++, objects instantiated on the stack must be returned to program memory through the explicit use of the delete keyword.
    6·1 answer
  • Activity Sheet 2<br>A.Illustrate how to create the object below using draw and modify commands.​
    15·1 answer
  • What kind of energy transformation occurs when you call someone on a cell phone?
    11·1 answer
  • Algorithm to eat orange<br><br>​
    10·2 answers
  • Write a program to demonstrate circular linked list with operations using pointers – insert
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!