Write a program that will simulate rolling two dice ( numbers 1 - 6 )
Ask the user how many rolls they want, then using a loop simulate that many dice rolls. Count the number of times the dice land on double 6's and print that total count at the end of the loop.

Answers

Answer 1

import random

rolls = int(input("How many times do you want to roll the dice? "))

i = 0

total_count = 0

while i < rolls:

   die1 = random.randint(1,6)

   die2 = random.randint(1,6)

   if die1 == 6 and die2 == 6:

       total_count += 1

   i += 1

print("The dice landed on double 6's {} time(s)".format(total_count))

I hope this helps!


Related Questions

1. Why would a designer use thumbnail images?
O a large number of images are needed
O to link to the original full-quality image
O to cut down on loading times
O all of the above

Answers

Answer:

The answer to this question is given below in the explanation section. The correct answer is All of the above.

Explanation:

First, we need to know what is thumbnail images.

The definition of the thumbnail is "A thumbnail is an image with a reduced file size that is used as a placeholder for full-sized multimedia content."

So the answer to this question is all of the above options mentioned in the question.

Designers uses thumbnail images because:

A large number of images are needed:

For websites and applications, the designer uses a large number of thumbnail in their application. Because websites require fast loading the pages and images so in e-commerce websites a large number of thumbnails images are used.

To link to the original full-quality image:

Thumbnail is the compressed view of original images that are used in a placeholder on a website.

To cut down on loading time:

The biggest advantage of thumbnail images is their reduced size to the original image. A website will have a significantly faster loading time if its images and videos initially displayed in a thumbnail.

While the user will decide for themselves which thumbnail content they want to see and click on it to load the original thumbnail content.

I WILLMARK BRAINLIEST PLZ ANSWER.

Answers

Answer:

I THINK  its D I THINK

Explanation:

The correct answer is syntax error.

In programming, a syntax error occurs when you forget things such as curly braces, semi-colons, colons, etc.

Brainliest will be given

Answers

Answer:

c.

Explanation:

Answer:

C

Explanation:

It’s Edhesive test 2 question 3 I’m confused help please?

Answers

Answer:

"This would cause an error: an integer variable cannot store a string"

Explanation:

The user cannot put letters into an integer line

What are the advantages and disadvantages of using a relational database than a flat-file database.

Answers

Advances

Data Integrity, You Only need to change the data in one of the tables, it will then update itselfData Redundancy, By having a relational databse it ensures that no attributes are repeatedData Consistency, There is no chance of the same attribute being stored in a different format in a different fileData Flexibility, When dealing with queries, it gets much easier creating deeper queries with a relational DatabseGreater Efficiency, as you only have to input the data only once into a relational database it saves time and human resources

Disadvantages

Complex, Relational databases can be very complex and without the necessary training can be very hard to break down.Expensive, Relational databases are mostly commercial and require the user to buy that piece of software or licenses for more than one machine

It is easier to minimize duplicate data in a relational database.

It is difficult to use a relational database without prior knowledge.

Input Format:

Get a, b, and c as input.

Output Format:

Output “Yes” or “No” depending on if the given quadratic is factorable. If it is

factorable, output the roots in increasing order. If there are two of the exact same roots, only output it once. Round roots to the nearest hundredth.

Sample Input Sample Output

1 1 -1 Yes -1.00, 0.00

1 3 2 Yes -2.00, -1.00

2 1 2 No

Answers

In python 3:

import math

def quadratic(a, b, c):

   if (b ** 2) - (4 * a * c) < 0:

       return "No"

   root1 = round((-b + (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   root2 = round((-b - (math.sqrt((b ** 2) - (4 * a * c)))) / (2 * a), 2)

   lst = ([])

   lst.append(root1)

   lst.append(root2)

   lst.sort()

   return f"Yes {lst[0]}, {lst[1]}"

print(quadratic(1, 3, 2))

The print statement tests the function. I hope this helps!

A program is written to compute the sum of the integers from 1 to 10. The programmer, well trained in reusability and maintainability, writes the program so that it computes the sum of the numbers from k to n. However, a team of security specialists scrutinizes the code. The team certifies that this program properly sets k to 1 and n to 10; therefore, the program is certified as being properly restricted in that it always operates on precisely the range 1 to 10. List different ways that this program can be sabotaged so that during execution it computes a different sum, for example, 3 to 20.

Answers

Answer:

See explanation section

Explanation:

See the program at the end of this solution

The program can be sabotaged if the source file is altered before running the program.

Take for instance,

Someone changes

for(int i =k;i<=n;i++)

to

for(int i =3;i<=20;i++)

This implies that no matter the user input, the program will only calculate the sum of 3 to 20

It is also possible that the program is altered by an external process.

Take for instance;

n = 10

k = 1

And the sum has been calculated for the range of k = 1 to 5.

Then the program is altered by an external process.

15 (sum of 1 to 5) will be displayed instead of 55 (sum of 1 to 10)

Program written in C++

#include<iostream>

using namespace std;

int main() {

int k.n,total=0;

cin>>k;

cin>>n;

//Assume k will always be less than n

for(int i =k;i<=n;i++) {

total+=i;

}

System.out.print(total);

return 0;

}

Is anyone doing K12?

Yes

No

Answers

Answer:

No

Explanation:

I need a brainliest to level up please contribute

Answer: Yes I'm doing sixth grade in K12

why is what you say in business as important as how you say it

Answers

Answer:

Because the things you say and how you say it can determine whether or not you sell an item, make a deal with another company and things of that nature.  Hope this helps!!

Because you have to be taken serious in business so that’s how it’s different

Can anyone help me I’m giving 11 points

Answers

#1 pairs with D.

#2 pairs with A.

#3 pairs with B.

#4 pairs with C.

I hope this helps!

One pairs of D would be the analysis

which part of project management involves determining possible risks ​

Answers

Answer:

A Gantt chart is primarily used for project management. Project managers use it frequently for effective project handling. A Gantt Chart enables the following: Easier task scheduling.The triple constraint theory, also called the Iron Triangle in project management, defines the three elements (and their variations) as follows:

Scope, time, budget.

Scope, schedule, cost.

Good, fast, cheap.

A proven methodical life cycle is necessary to repeatedly implement and manage projects successfully.

HELP ME!!!

Complete the sentence. (2 words) _____ _____ Each packet is addressed to the recipient's .

Answers

Answer:

I'd like to say home address

Explanation:

Home address Each packet is addressed to the recipient's.

What is address?

on which to engrave delivery instructions. a letter's address. To assign responsibility to another party such as an organization or factor: to concentrate one's efforts or attention.

A1. A person's address, which includes their home and workplace addresses as well as the street name and house number where they live or work. a change in tone to pay attention to or address a worry or problem: We'll talk about that at our next meeting.

An address, which is a collection of information presented in a mostly standardized fashion and typically employs political boundaries and street names as references, identifies the location of a building, apartment, or other structure or a plot of land.

Thus, it is Home address.

For more information about address,  click here:

https://brainly.com/question/29065228

#SPJ2

in which grades do students typically take the PSAT?
A. Ninth and tenth grades
B. Eighth and ninth grades
O C. Tenth and eleventh grades
O D. Eleventh and twelfth grades

Answers

B eighth and ninth grade

B. Eighth and Ninth grade.

Write a program that will ask the user to continuously input positive numbers until they type -1 to stop. The program should add up all the number they entered as they are typed ( excluding the -1) then print

example: user enters
8

4.

20

-1
Total: 32

Answers

In python 3:

total = 0

while True:

   number = int(input("Enter a number: "))

   if number == -1:

       break

   total += number

print("Total: {}".format(total))

I hope this helps!

I WILL MARK BRAINLIEST 11

Answers

Answer:

Many may answer different to this question, but in my opinion I would say it's false

"How does the INTERNET
work?
O Celluar
O ip Adress
O Twisted Pair
O Fiber Optic
O Server

Answers

Answer:

server

Explanation:

it works through a server

Answer:

IP adress

Explanation:

Pepsi or Coke B)
Or other

Answers

Answer:

Out of Pepsi or Coke, I gotta go with Coke, but in general any soda I would choose Orange Fanta.

Answer:

I prefer cream soda dr. pepper. But out of Pepsi and Coke, I'd choose Coke but I don't really like either.

Explanation:

Type the correct answer in the box.
Which function will display 6 as the output in the following formula?
C1*(C2+B1)
where C1 is 6, C2 is 2, and B1 is 4
___.

Answers

Answer:

3

Explanation:

What is a server OS used for?

O Handling requests and supplying responses

O Performing one task, such as in an STM machine

O Running a permanent system, like the timing controls in a washing machine

O Running multiple operating systems on a computer system.​

Answers

Answer:

Handling requests and supplying responses

Server Operating Systems are used to run on servers that operate within a client to handle the requests of the client computers on the network

Give two reasons why an IT manager consider using a cloud software?​

Answers

Answer:

Cloud offers better insight.In a world awash in structured and, increasingly, unstructured data, 54% of leading organizations are using analytics to derive insights from big data, which helps them target customers and product opportunities more effectively.

Cloud helps collaboration. Cloud allows work to be accessed from multiple devices and from anywhere, which in turns makes it much easier for teams to collaborate on shared data.

Explanation:

Read the following scenario:
Two graphic design artists are leaving a major production studio to start a small production company. The artists are in the process of hiring team members when the artists disagree on two potential candidates for one position. Neither artist is willing to compromise, and the hiring process comes to a standstill. Meanwhile, a feature film company has expressed interest in hiring the new production company to work on an upcoming film.
How would this problem most likely be solved?
a. The partners would meet and reevaluate their staff needs, potentially making room for both candidates.
b. The partners would split up and open competing production companies.
c. The partners would defer the hiring of the position to the film producer.
d. The partners would dissolve their business and move into freelancing.
Please answer now !!!

Answers

Answer:

A

Explanation:

None of the other answers suit a professional business and situation.

1.5 code practice: question 4 edhesive

Answers

print(" \"Computer Science is no more about computers ")
print(" than astronomy is about telescopes\" ")
print ("- Edsger W. Dijkstra")

if you could bring any fictional character to life who would it be and why

Answers

Answer:

someone helpful like: saitama or any hero from any manga, except eryn, spooky.

Explanation:

Answer:

bilbo baggins

Explanation:

huge hobbit fan

More pictures more points for everyone :)

Answers

Answer:

WOOF WOOF

Explanation:

MEOW MEOW

Answer:

Nice pics

Explanation:

Love the second one tho

Assignment 3: Chatbox python coding
I just need something real simple that follows the criteria in simple coding

Answers

In python:

import random

good_responses = (["That's cool!", "Wow!", "That's great to hear!", "Tell me more"])

bad_responses = (["I'm sorry", "That sucks!"])

first_name = input("What's your first name? ")

last_name = input("What's your last name? ")

print(f"Hello {first_name} {last_name}, nice to meet you!")

age = int(input(f"How old are you, {first_name}? "))

if age > 17:

   print("Wow, you're old enough to vote!")

else:

   print("Quite young, aren't you.")

   

color = input("What's your favorite color? ")

print(good_responses[random.randint(0, 3)])

feeling = input("How are you feeling? (sad/happy) ")

if feeling == 'sad':

   print(bad_responses[random.randint(0, 1)])

else:

   print(good_responses[random.randint(0, 3)])

print(f"It's been nice chatting with you, {first_name}!")

I hope this helps!

Which of the following happens during pre-production?

storyboarding

filmmaking

recording

editing

Answers

i want to say storyboarding
I’m pretty sure story boarding

who invented the computer? ​

Answers

Answer:

Charles Babbage invented computer

Which of the following is a type of multimedia?(1 point)

a magazine article about ways to stay active

the handwritten notes from a lecture

a podcast included as part of an online news column

the textbook edition of a Shakespearean play

Answers

C. A podcast included as part of an online news column is a type of multimedia.

Answer: C

a podcast included as part of an online news column

the answers might be in a different order on ur side, but the answer will stil be the same. A podcast included as part of an online news column

I hope this helps : )

♥my phone is super cracked and i need 30 dollars to fix it. i'm 14. does anyone know how i can make 30 dollars really fast without taking those dumb surveys? i really need help.♥

Answers

Answer:

hi u could sell some old stuff online?

help a nieghbor?

lemonade stand?

Explanation:

Joanna is a qualified network specialist and has worked in this role for about six years. Her manager recommends that she enhance her qualifications for career advancement in the same role. What additional certifications can Joanna aim for? SAS Certified Base

Answers

Answer:

Cisco's CCENT

Cisco's CCNA

Explanation:

Since in the question it is mentioned that Joanna who is a  qualified network specialist and has worked for six years also her manager suggest her to enhance her qualification so that the career could be better due to which she can gets the better package and opportunity as compared to before

Therefore the additional certification that needed is CCENT and CCNA and the same is to be considered. These are the networking certifications.

Other Questions
How does atomic radius change from left to right across a period in the periodic table? A. it tends to decrease B. it tends to increase C. it first increases, then decreases D. it first decreases, then increases what nation in Asia did the US take over in 1898 For fixed costs of $2,000, revenue per unit of $2, and variable cost per unit of $1.60, the break-even quantity is: Based on the food web which animal gets most of its energy from grass?? In City A, the temperature rises F from 8 A.M. to 9 A.M. Then the temperature drops F from 9 A.M. to 10 A.M. In City B, the temperature drops F from 8 A.M. to 9 A.M. Then the temperature drops F from 9 A.M. to 10 A.M. Write an expression that represents the change in temperature from 8 A.M. to 10 A.M. for each city. Simplify and interpret each sum. Use pencil and paper. Which city has the greater change in temperature? Which expression represents the change in temperature for City A? PLZZZZZZZZZZZZZZZ HELP I SICK AND TRIED OF BEING SKIP ON I GAVE ALL MY POINTS AWAY FOR TWO OF MY QUESTION YET PEOPLE STILL TROLLTEXT:We dont know how the bone of a cow, a European domesticated animal, wound up mingled with other more traditional Munsee household refuse here [Clasons Point, the Bronx] and at other sites in the city. The meat could have been given, bought, or stolen, or the livestock could have been raised by the community. Written accounts suggest all of these possibilities.No matter how the meat got here, this seemingly insignificant find underscores the profound and irrevocable economic and ecological changes taking place not only here but throughout seventeenth-century coastal New York. As the colonial settlements grew, Dutch and English farms began expanding more and more into Munsee territory. The colonists cut down forests for lumber, cleared fields, planted European crops, and grazed European animals. These practices radically altered local ecosystems and destroyed the habitats of many of the animals that the Munsees had traditionally hunted and the plants on which they had depended.Compounding these changes was the tense political climate in the mid-seventeenth century. Not only did the wars take energies away from economic activities, but Munsee and Dutch also destroyed each others crops as part of conflicts. As a result, the Munsees had to find new strategies to get food and to deal with their rapidly changing natural world, which they were now sharing with the colonists. This piece of cow bone, then, is evidence of the dramatic changes in the economy and landscape that were taking place throughout the world.QUESTIONS:What was the main idea of Ecological and Demographic Impact of the Columbian Exchange Resources, The Changing Landscape?Main Idea:Who:What:Where/When:Why: what is the Y intercept y= 4x - 9 The measure of an object's mass and velocity is called __________.A.gravityB.accelerationC.inertiaD.momentumPlease select the best answer from the choices provided.ABCD Which statement best describes how sediment forms?A. Loose material is cemented by pressure.B. Chemical changes cause sediment to compact together.C. Weathering breaks down rock and other material.D. Molten rock cools above Earths surface. Universal themes include which of the following? Select all that applyA. Technologically innovative ideasB. Fundamental ideasC. Easily understood ideas about pop cultureD. Ideas that are relevant to all people What is the equation for the line that has a slope of -1/2 and a y-intercept at (0,6)? How did your own perspective affect the way you presented your views? Explain. Is the square root of 100 a natural number? A map has a scale of 3 cm : 18 miles. If San Antonio and San Marcos are 54 miles apart, then they are how apart on the map? how do you get out of an restaurant.is random question A. -1/3B. 3/1C.-3/1D.1/3 I need help explain plz How does the author use rhetoric to advance his point of view of the loon why do you think that more diverse life can exist in the taiga Write a closed-form definition to find any term for the sequence established by the rules below. Let "n" stand for the position of the term in the sequence and "a(n)" show the value of the term defined by "n."f (n) = f (n - 1) + 6 where f (1) = 10