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
Effectus [21]
2 years ago
6

4.11.4 Snake Eyes code HS I cant see to get this right, ant help would be appreciated.

Computers and Technology
1 answer:
Pani-rosa [81]2 years ago
8 0

Answer:

This is python, I don't know what type of programming language you are learning.

import random

# Enter your code here

dice1 = random.randint(1,6)

dice2 = random.randint(1,6)

total = 0

while True:

   if dice1 == 1 and dice2 == 1:

       total += 1

       print("Rolled: " + str(dice1) + " " + str(dice2))

       break

   else:

       total += 1

       print("Rolled: " + str(dice1) + " " + str(dice2))

       dice1 = random.randint(1,6)

       dice2 = random.randint(1,6)

       

       

print("It took you "+ str(total) + " rolls to get snake eyes.")

Explanation:

You might be interested in
All of the following are considered active job search methods EXCEPT _____. a. sending out resumes b. attending job training pro
LuckyWell [14K]
A sending out resumes
5 0
3 years ago
Read 2 more answers
An array name is a pointer constant because the address stored in it cannot be changed during runtime.
choli [55]
The answer to your question would be option B- False
5 0
2 years ago
Read 2 more answers
The cost of a CLEP exam is about__<br><br> A$100 <br> B $50 <br> C$80<br> D$170
Elanso [62]

Your answer is C or $80

When averaging the costs of credit hours at public and private community colleges and four-year institutions, the median cost for a three-hour class in 2017 was $1,782. Conversely, each CLEP exam costs $85.

5 0
4 years ago
Read 2 more answers
Jerry suspects that information about his internet usage was sent to external websites without his knowledge. He is wary about t
kykrilka [37]
Block your local by change cookies settings
4 0
3 years ago
What the heck is happening what is this?
Brilliant_brown [7]
Just decrease the font size and the size of the like will decrease.

Decrease font size by pressing on the part were it says 29 and typing in a smaller number like 14 for example
4 0
3 years ago
Other questions:
  • Which one of the following downloads and uploads files to and from a server? A. Client B. Internet protocol C. Server D. Worksta
    9·1 answer
  • What font option will elevate part of the text to a higher level and decrease its size? A. Subscript
    8·1 answer
  • Analyze the following code. Is count &lt; 100 always true, always false, or sometimes true or sometimes false at Point A, Point
    11·1 answer
  • Computers help eliminate the repetitiveness of manual tasks. How can this benefit you in your overall career?
    9·2 answers
  • Default tab stops are set in word every _______ inch. a. ¾ b. ½ c. 1 d. ¼
    7·1 answer
  • You are attending to a neighbor who is unresponsive, not breathing normally, and pulseless. Your spouse has left to activate EMS
    8·1 answer
  • Select the correct answer from each drop-down menu.
    7·1 answer
  • Select the correct answer.
    13·2 answers
  • Angular where to set httpclient root url.
    6·1 answer
  • What is one difference between a web page and a web application?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!