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
tekilochka [14]
2 years ago
8

If anyone knows how to code on python:

Computers and Technology
1 answer:
Allushta [10]2 years ago
5 0

Answer:

def dice_roller():

   # ask for first input

   input1 = int(input("Enter the first roll: "))

   # check if it's valid

   while input1 < 1 or input1 > 6:

       print("Invalid number")

       # ask for new input if the previous was invalid

       input1 = int(input("Enter the first roll: "))

   # ask for second input

   input2 = int(input("Enter the second roll: "))

   # check if it's valid

   while input2 < 1 or input2 > 6:

       print("Invalid number")

       # ask for new input if the previous was invalid

       input2 = int(input("Enter the second roll: "))

   # check of the numbers are the same

   if input1 == input2:

       print("You rolled the same numbers. Try again")

       # if they are the same call this function again to get new numbers

       dice_roller()

   else:

       # print how many spaces to advance

       print("Advance", input1+input2, "spaces")

if __name__ == '__main__':

   dice_roller()

Download txt
You might be interested in
Click to review the online content. Then answer the question(s) below, using complete sentences. Scroll down to view additional
Studentka2010 [4]

Answer:

to find a answer in brainly

7 0
2 years ago
Read 2 more answers
Alicia uses a software application to store the names, email addresses, and phone numbers of her friends in alphabetical order. 
SpyIntel [72]

I think she's using Excel.

6 0
3 years ago
In an era of widespread cultural change within the United States,
Romashka [77]

In an era of widespread cultural change within the United States, members of the mainstream culture must learn the customs and practices of minority  groups, including new immigrants, and take care to avoid giving offense.  cultural norms of minority groups are so similar to those of the mainstream culture, that  knowing the norms of the majority is sufficient for business success.

Explanation:

  • Acculturation can be defined as the 'process of learning and incorporating the values, beliefs, language, customs and mannerisms of the new country immigrants and their families are living in, including behaviors that affect health such as dietary habits, activity levels and substance use.
  • A cultural misunderstanding occurs when something a word, gesture, object, social context, has different meanings in two cultures.
  • Sometimes the misunderstandings get resolved, sometimes they lead nowhere, and sometimes they can escalate to anything from love to war
  • Ethnic traditions as a sociocultural phenomenon allowing to comprehend the national identity of peoples and universal norms in each culture which make a methodological basis for formation of moral values.
  • But in the 1990s, the term minority usually refers to four major racial and ethnic groups: African Americans, American Indians and Alaska Natives, Asians and Pacific Islanders, and Hispanics.

4 0
4 years ago
Two or more computers connected together is referred to as a(n)
oksian1 [2.3K]
That would be a network my friend. When two or more computers are connected to one another, you have a network.
8 0
3 years ago
We have removed
Tanzania [10]

There were N balls but we took A balls out, so there are now N-A balls. We add B balls and now we have N-A+B balls.

The program that computes this (I will use python as language has not been specified is the following):

n, a, b = int(input()), int(input()), int(input())

print(f"There are {n-a+b} balls in the box")

# Hope this helps

8 0
3 years ago
Other questions:
  • Show the output waveform of an AND gate with the inputs A, B,
    5·1 answer
  • Which principle suggests that specific single responsibility interfaces are better than one general purpose interface?
    13·1 answer
  • Assume that a finite number of resources of a single resource type must be managed. Processes may ask for a number of these reso
    10·1 answer
  • When is the kids choiceee awads?????????????????????????
    12·2 answers
  • Microsoft presentation software tool is called
    10·2 answers
  • Every Java statement ends with: *<br><br> Period<br> Colon<br> Double quote<br> Semicolon
    11·2 answers
  • Debug the code in the main method of this class, which is intended to initialize an array named arr to hold 3 ints, fill this wi
    15·1 answer
  • Write<br> algorithm to read 100 numbers<br> then display the largest.
    9·1 answer
  • Marissa is designing a web page that features lessons on how to build cabinets. how can she make the page most engaging for the
    7·1 answer
  • program that initialises a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading”.
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!