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
Zielflug [23.3K]
3 years ago
6

Assume in the for loop header, the range function has the three arguments: range (1, 10, 3), if you were to print out the value

of the variable
in the for loop header, what will be printed out? List the values and separate them with a comma.
Computers and Technology
1 answer:
Licemer1 [7]3 years ago
6 0

Answer:

1, 4, 7

Explanation:

The instruction in the question can be represented as:

for i in range(1,10,3):

   print i

What the above code does is that:

It starts printing the value of i from 1

Increment by 3

Then stop printing at 9 (i.e.. 10 - 1)

So: The sequence is as follows

Print 1

Add 3, to give 4

Print 4

Add 3, to give 7

Print 7

Add 3, to give 10 (10 > 10 - 1).

So, it stops execution.

You might be interested in
What can be said about the equipment used by photographers during the Civil War?
lilavasa [31]
The answer is 1 and 4
6 0
3 years ago
Read 2 more answers
An experienced user has installed Oracle VM VirtualBox on her workstation and is attempting to use it to create a virtual machin
jasenka [17]
<h2>Answer:</h2><h3>Option b. Virtualization is not enabled in BIOS/UEFI. </h3>

is the correct answer.

<h2>Explanation:</h2>

Virtualization can be defined as the process which allows simultaneous usage of more than one operating systems on a single system. Actually a virtual instance is ran on a system on layer which is abstract from original hardware. Virtual Machines are of much use now-a-days.

Sometimes it happens that the Operating System disables the Virtualization process by default so the Option B is correct one in this case. So user will have to enable the Virtualization option in order to overcome the problem.

  • As the user who is trying to install VM is an experienced one so the option  A goes wrong.
  • As the error or problem occurred after the installation process so the option C also goes wrong.
  • As a workstation comprises of memory storage as primary and secondary so the option D cannot be true in this scenario.

<h3>I hope it will help you!</h3>
5 0
3 years ago
Why does dew form on grass overnight
12345 [234]
Dew forms on grass when the cold air form the night blends with the hot air from the morning therefore creating dew on grass
8 0
4 years ago
(10 points) Make a user interface to get 3 points from the user which will be placed on the coordinate plane. Then write a Pytho
babymother [125]

Answer:

def cord_input():

Global coordinates

coordinates = {'x1': 0, 'y1': 0, 'x2':0, 'y2':0, 'x3':0, 'y3':0}

for key, i in enumerate(coordinates.keys()):

if i < 2:

index = 1

coordinates [key] = float(input(f"Enter {key} coordinate for point {index}: "))

elif i >= 2 and i < 4:

index = 2

coordinates [key] = float(input(f"Enter {key} coordinate for point {index}: "))

else:

index = 3

coordinates [key] = float(input(f"Enter {key} coordinate for point {index}: "))

def sides(p1, p2, p3):

nonlocal a, b, c

a = ((p2[0] - p1[0])**2) + ((p2[1] - p1[1])**2)

b = ((p3[0] - p2[0])**2) + ((p3[1] - p2[1])**2)

c = ((p3[0] -p1[0])**2) + ((p3[1] - p2[1])**2)

def is_right_triangle(p1, p2, p3):

sides(p1, p2, p3)

if a+b == c or b+c == a or a+c == b:

print(f"Sides {a}, {b} and {c}")

return True

else:

return False

def is_equilateral(p1, p2, p3):

sides(p1, p2, p3)

if a==b and b==c:

print(f"Sides {a}, {b} and {c}")

return True

else:

return False

cord_input()

Explanation:

The python code above defines four functions, cord_input (to input a global dictionary of coordinates), sides ( to calculate and assign the sides of the triangle), is_right_triangle ( to check if the coordinates are for a right-angle triangle), and is_equilateral for equilateral triangle check.

3 0
3 years ago
Materials that allow electricity to flow are called A) Metals B) Attractors C) Conductors D) Insulators
LUCKY_DIMON [66]

The answer to the blank space in the given question is (C) conductors.

Conductors are<em> objects that can be used to make electrical current or heat flow from the source to a target object.</em> Some objects are better conductors than others due to its materials. For example, objects made from metals are always better conductors than objects made from wood or glass.

5 0
3 years ago
Read 2 more answers
Other questions:
  • Java
    13·1 answer
  • Which would be a responsible use of technology used by victims of cyberbullying? finding ways to strike back at bullies online.
    15·1 answer
  • Which operation on a pwc requires more than idle speed?
    8·1 answer
  • Which note taking strategy has you divide a page into 3 sections for your notes, key points, and summary?
    11·1 answer
  • 1) If a robot has a 3 bit instruction set and needs 20 instructions to reach its destination, how many bits of memory are requir
    5·1 answer
  • What are the purposes of using a text-to-speech tool? Check all that apply.
    9·2 answers
  • B. Directions: Fill in the blanks with the correct answer.
    13·1 answer
  • The science of networking is attributed to which government's involvement?
    11·1 answer
  • _____ have networked and texted all of their lives with smartphones, tablets, and high-speed Internet.
    8·1 answer
  • Who invented Satellites? What purpose does it serve? How has it impacted society today?
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!