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
Quiero borrar mi cuenta como le hago ?
ollegr [7]
I want to delete my account as i do 
that is what google translate says<span />
6 0
4 years ago
Sptr is a pointer pointing to the beginning of an array called sarray. To access the value in sarray[3] by using the pointer, yo
kupik [55]

Answer:

The correct option for accessing the value in sarray[3] is : d) *(sptr+3)

Explanation:

a) *sptr[*3]  is wrong option because its syntax is not right it will give errors.

b) *sptr+3 is also wrong option because it will add 3 to the value of sarray[0].

c) sptr+3 is wrong option because it will only access the address of sarray[3] not the value it contains.

d) *(sptr +3) is correct syntax for accessing value in sarray[3] by using pointer

4 0
3 years ago
When was the speaker invented?
wlad13 [49]

Answer:

Explanation:

1876

4 0
3 years ago
Read 2 more answers
An administrator needs to protect rive websites with SSL certificates Three of the websites have different domain names, and two
Marysya12 [62]

Answer:

Option A (One SAN certificate) is the right answer.

Explanation:

  • A vulnerability management certificate that permits many domain identities to be safeguarded by such a singular or unique certification, is considered a SAN certificate.
  • Though on the verge of replacing common as well as accepted security credentials with either of these de-facto certifications.

Other alternatives are not connected to the given scenario. Thus the above option is correct.

5 0
3 years ago
What is the deck of a suspension bridge called​
dedylja [7]

Answer:

The main forces in a suspension bridge are tension in the cables and compression in the towers. The deck, which is usually a truss or a box girder, is connected to the suspension cables by vertical suspender cables or rods, called hangers, which are also in tension. I think this is the answer

5 0
3 years ago
Other questions:
  • Privileged instructions 1) generate an interrupt so they can execute before non-privileged instructions. 2) are valid only when
    5·1 answer
  • To write 10 lines of code on paper:
    10·1 answer
  • What are the principal cybersecurity threats, both internal and external, and the principal safeguards that have been developed
    13·1 answer
  • Select each of the strategies you can use to be more efficient when using the Internet. using tabs creating tables creating book
    6·2 answers
  • Java supports ________; collections of related methods that typically enable you to tell objects what to do, but not how to do i
    12·1 answer
  • How do u type faster
    5·1 answer
  • Write a method called classAttendence() that creates a 10-by-10 two-dimensional array and asks for user input to populate it wit
    14·1 answer
  • Edhesive, 8.6 question 1
    10·1 answer
  • The email_list function receives a dictionary, which contains domain names as keys, and a list of users as values. Fill in the b
    14·1 answer
  • What is this line called that appears and disappears in the search box<br><br> WILL MARK BRAINLIEST
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!