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
"a router interface has been assigned an ip address of 172.16.192.166 with a mask of 255.255.255.252. to which subnet does the i
baherus [9]
An interface with an address of 172.16.192.166/30 has only 2 hosts per subnet. 172.16.192.166 and 172.168.192.169 are those hosts.
This configuration is usually only assigned to serial links with one source and one destination address like a T1/3.
3 0
4 years ago
How to screen shot on a computer
GuDViN [60]
Snippet tools the answer
3 0
4 years ago
Read 2 more answers
Which statement about muzzleloaders is true? All muzzleloaders are rifles. All muzzleloaders have only one barrel. Muzzleloaders
NeX [460]

Answer:

Muzzleloaders are early firearms that are loaded from the open end

Explanation:

A muzzleloader is any firearm into which the projectile and usually the propellant charge is loaded from the muzzle of the gun.

This is distinct from the more popular modern designs of breech-loading firearms.

Thus, muzzleloaders are early firearms that are loaded from the open end.

6 0
3 years ago
Create a single line comment that says ""Print results to screen""
levacccp [35]

Answer:

//""Print results to screen""

Explanation:

In c,c++,java,javascript // is used for the single line comment.

syntax:- // comment.

Whatever text that is followed after // is commented means this line will not get executed by the compiler.

Comments are used to explain the code to other person who is working on the code or trying to understand that code.

6 0
3 years ago
A man travel 200m towards east<br />from his house then takes left<br />to turn and moves 200 m north<br />fin
11Alexandr11 [23.1K]
Using the Pythagorean theorem:

200^2 + 200^2 = x^2

x = 282.842712... from the original distance
4 0
4 years ago
Other questions:
  • What do you think of explaining to young people, from high school, the legitimacy of copyright and the dangers they can run on t
    11·1 answer
  • Why do we have to watch a video to get answers?
    7·2 answers
  • What things have small motors
    13·1 answer
  • The data in a database management system that identifies the names of​ tables, fields in each​ table, and the properties of each
    13·2 answers
  • Which of the following is the shortcut key combination for pasting copied text?
    11·2 answers
  • How do you check how much space is left in current drive?
    9·1 answer
  • This graphics program should draw a caterpillar. A caterpillar has NUM_CIRCLES circles. Use a for loop to draw the caterpillar,
    6·1 answer
  • Why is it important to install updates? Why should you use the Power button on the Start menu instead of the Power button on you
    7·1 answer
  • Can you adopt me in the orphanage u saw Tammy after school?
    7·1 answer
  • "kannst du mir bitte helfen" in German-English from Reverso Context: Hier, kannst du mir bitte helfen?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!