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
A business has recently deployed laptops to all sales employees. The laptops will be used primarily from home offices and while
lys-0071 [83]

C. OS hardening.

Making an operating system more secure. It often requires numerous actions such as configuring system and network components properly, deleting unused files and applying the latest patches.

The purpose of system hardening is to eliminate as many security risks as possible. This is typically done by removing all non-essential software programs and utilities from the computer.

5 0
3 years ago
The process of a web server adding a tcp header to a web page, followed by adding an ip header, and then a data link header and
kumpel [21]
<span>Encapsulation is defined as the process of adding a header in front of data supplied by a higher layer (and possibly adding a trailer as well).</span>
7 0
3 years ago
The envelope method, notebook and pencil, and online software are all methods of ______.
coldgirl [10]

Answer:

communication

Explanation:

5 0
3 years ago
Read 2 more answers
We look for trends when we are looking at data. What is a trend?
yulyashka [42]
A subject of what people say at the time, most used, famous at the present time
4 0
3 years ago
Read 2 more answers
Explain what the color range ( green and red ) in this interactive map represents
katrin2010 [14]

Answer:

You should send a picture of the map so people can answer directly.

Explanation:

3 0
3 years ago
Other questions:
  • If you find yourself boxed in by a vehicle on your left or right _____________
    14·2 answers
  • What piece of software tells the operating system how to use a specific hardware device?
    14·1 answer
  • Why is fragmentation of an ip packet sometimes required?
    12·1 answer
  • What short (two letters!) but powerful boolean operator can check whether or not one string can be found in another string?
    12·1 answer
  • To reduce chances of system failure, engineers may use _____ .
    10·2 answers
  • A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10 servings in the bag and that a se
    10·1 answer
  • Suppose you have two tables: officer and gentleman. what question(s) can be asked by using the union operator?
    11·1 answer
  • What is the function for displaying differences between two or more scenarios side by side?
    11·2 answers
  • Only one person can receive the same email at the same time true or false
    10·1 answer
  • Which type of data is most sensitive and should be protected from malware?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!