Loops - Reading Assignment


#122
  1. A loop performs an operation only if the condition is true.
  2. A loop allows us to perform a repeated task without using huge lines of codes.
  3. The only difference of using do-loops is it performs one loop without analyzing the condition.
  4. Indentation helps the visibility of the code, facilitating the readability for the programmer.

#123

1: allows you to return to a point in a program until certain criteria is either true or false and the code inside the loop is executed
2: Loops are code that is repeated until a requirement is met or a statement is either true or false.
3: while loop expressions are checked after the code is executed, do loops evaluate the conditions after the code or loop is executed more than once
4:The spacing between the margins


#124

What is looping control flow allowing us to do?
Going back into a certain point in a program and repeat the following proces.
Describe what “loops” do in your own words.
Run a piece of code multiple times.
What is the difference between while and do-loops?
a do-loop always executes a program at least one time.
What is indentation?
creating tabs and spaces in your code to make it more readable.


#125

What is looping control flow allowing us to do?

-Looping control allows us to set parameters around how our loop runs and what it outputs. Using else and if statements throughout a loop will produce different results based on which of the conditions that we’ve written are true.

Describe what “loops” do in your own words.

-Loops rerun sections of code from a specified point and for a specified number of times.
Instead of retyping the same code over and over with new values on each line, you can write a loop that knows how many times the code should be rerun and what new value should be run in each new line.

What is the difference between while and do-loops?

-A while loop will run continuously until conditions are false or there is a break line. A do loop will run until conditions are true. So if it runs once and conditions are true, it will stop.

What is indentation?

-Indentation is a way to organize lines of code within a block of code. It is not required, but makes it much easier to read and understand.


#126
  1. A looping control flow allow us to run a code multiple times.
  2. This type of control flow reduces an amount of work required to perform multiple similar tasks. It directs the control flow back in some point of program execution and starts from that point, but with different starting condition.
  3. A keyword while creates a loop, which will be executed till that while condition reached. A do loop acts almost the same as while , but starts checking a stop point only after the execution of statement one time.
  4. Indentation just makes a structure of a block and makes the code easier to read.

#127
  1. What is looping control flow allowing us to do?
    It allows us to go back to some point in our program where we were before, and repeat the program with the current set of values

  2. Describe what “loops” do in your own words.
    Loops allow to keep a program running while a certain condition is true.

  3. What is the difference between while and do-loops?
    While loops mean that the program will run while a condition is true.
    Do-loops will run the program at least once, and will only continue while the expression is true.

  4. What is indentation?
    Indentation are the spaces before the statements we see inside blocks, which make the structure of the code stand out, making it visually easier to follow/read.


#128

1. What is looping control flow allowing us to do?
When we need is to run a piece of code multiple times. This form of control flow is called a loop.

2. Describe what “loops” do in your own words.
An efficient way of performing code multiple times.

3. What is the difference between while and do-loops?
A do loop is a control structure similar to a while loop. It differs only on one point: a do loop always executes its body at least once, and it starts testing whether it should stop only after that first execution

4. What is indentation?
The role of this indentation inside blocks is to make the structure of the code stand out for humans reading code. These spaces are not required—the computer will accept the program just fine without them.


#129
  1. Looping control flow allows us to go back to some point in the program where
    we were before and repeat it with our current program state.

  2. Loops help us count or generally deal with small, medium, and very large counting operations.

3.while loops occur constantly until they reach their predetermined boolean. While do loops stop execution one they get an expected input from the user

  1. indentation is basically how we organise our statements in a computer programme.

#130
  • What is looping control flow allowing us to do?
    Decide to execute the same code a number of times based on some conditions
  • Describe what “loops” do in your own words.
    Repeat a piece of code a nuber of times
  • What is the difference between while and do-loops?
    The first cheks the true contition on entering the loop the other on exiting the loop
  • What is indentation?
    Put some spaces or tabs at the begining of the lines for clarity when nesting code

#131

What is looping control flow allowing us to do? → Run a piece of code multiple times. It allows us to go back to some point in the program where we were before and repeat it with our current program state.
Describe what “loops” do in your own words. → Allows us to repeat an action either continuously or until a particular result is achieved.
What is the difference between while and do-loops? → A do loop always executes its body at least once, and it starts testing whether it should stop only after that first execution.
What is indentation? → Using consistent spacing inside blocks to make the structure of the code stand out. With proper indentation, the visual shape of the program corresponds to the shape of the blocks inside it.


#132

What is looping control flow allowing us to do?
controling the peramiters of the program
Describe what “loops” do in your own words.
loops allow you to run a specific exspression multiple times until your condition is met
What is the difference between while and do-loops?
for loops have all information being written after for
What is indentation?
the role of indentation is to help the programer keep track of where they are at


#133

What is looping control flow allowing us to do?
It allows us to run a piece of code multiple times. It allows us to return to some point in a program and re-run it with the current program state.

Describe what “loops” do in your own words.
A loop will repeat a piece of code while a certain condition remains valid.

What is the difference between while and do-loops?
A while loop sets a condition and will continue processing while the condition is satisfied. A do loop always first executes its body at least once and it starts to test a condition only after that part was executed.

What is indentation?
It is used to add spaces in front of a line of code in such a way that the structure of the blocks can be easily identified. It gives a visual shape of a program.


#134
  1. Looping control flow allows us to repeat a block of code as many times as we want (sometimes not)
  2. Loops execute a block of code until the exit condition is met
  3. Do-loop executes it’s body at least once before testing the condition, while loop tests the condition before actually executes the code in it’s body.
  4. Indentation is a nice way to make the code human-readable by spacing (tabbing) the code that is part of “parent” statement. For example the code inside { } after IF(condition = true) should be indented. It gets very useful once the program grows.

#135

What is looping control flow allowing us to do?

Allows information (for instances variables) to return to a specific
portion of the code, test some condition on this information, and then
update it to reach the a final state of the loop.

Describe what “loops” do in your own words.

Loops allow us to execute a code, in an easy an automatic way. This excecution
will continue until some condition is satisfied or some state of the program is reached.

What is the difference between while and do-loops?

do-loops ALWAYS executes its body at least one time. After
this initial execution it test (via while) wether to stop or continues.

What is indentation?

Is a way to write code that consists to add spaces
every time you create a loop, so that it is easier to
read for other developers.


#136
What is looping control flow allowing us to do?

Looping control flow allows us to go back to some point in the program where
we were before and repeat it with our current program state.

Describe what “loops” do in your own words.

It is statement repeted until certain criteria are fulfilled.

What is the difference between while and do-loops?

A while loop, usually with a test expression that checks whether the counter has reached its end value. At the end of the loop body, the counter is updated to track progress.
A do loop is a control structure similar to a while loop. It differs only on one point: a do loop always executes its body at least once, and it starts testing whether it should stop only after that first execution.

What is indentation?
It makes certain structures of code stand out in and allow to clarify clearly one section from the other.


#137
  1. Looping control flow allows us to go back to some point in the program where
    we were before and repeat it with our current program state.
  2. Looping is a way to run a piece of code multiple
    times.
  3. The only difference is that DO loops will run at least once whereby a WHILE loops may not run if certain criteria is not met.
  4. The role of indentation inside blocks is to make the structure of the
    code stand out. In code where new blocks are opened inside other blocks,
    it can become hard to see where one block ends and another begins. With
    proper indentation, the visual shape of a program corresponds to the shape of
    the blocks inside it.

#138

What is looping control flow allowing us to do?

Looping control flow allows us to repeat code by going back to some point in the program where we were before and repeat it with our current program state.

Describe what “loops” do in your own words.

Loops allow code to be executed repeatedly (or not) depending on a given Boolean condition.

What is the difference between while and do-loops?

The difference is when the condition gets executed. In a while-loop, the expression is tested and the loop may or may not be executed based on the Boolean value of the expression, whereas in a do-loop the loop will be executed first and then the expression will be evaluated to loop again or end. The key difference being that the loop is guaranteed to be executed at least once.

What is indentation?

Indentation is a technique used to make coding more readable. Their are established norms in the programming community that you should follow but is not necessary because the computer doesn’t actually care!


#139

1.What is looping control flow allowing us to do?
“Looping control flow” allows us to write less code in some cases. It allows us to to go back to some point in the program, to a certain point, and repeat the balance of the code, to its final program statement.

  1. Describe what “loops” do in your own words.
    The “while” statement creates a “loop”. The loop keeps re-entering the block of code as long as it produces some value that is “true”. It then stops once the value is no longer “true” and goes on to the next block of code.

  2. What is the difference between while and do-loops?
    “while”, “do”, and “for” statements produce “loops”. While and do statements produce the same results, running until a false value is reached.

  3. What is indentation?
    Indentation is a formatting convention. Indentation, inside a block of code, makes the structure if the code stand out.


#140
  1. What is looping control flow allowing us to do?

Looping control flow allows for coding iterations.

  1. Describe what “loops” do in your own words.

At each step of a loop a condition is evaluated before (or after) the body of the loop is executed. This process continues until the condition is false.

  1. What is the difference between while and do-loops?

A while loop always first test for the condition before executing the body of the loop. A do-loop execute first the body of the loop before testing for the condition. Hence a do-loop will always execute the body at least once contrary to the while loop.

  1. What is indentation?

The indentation is the amount of blank space added at the beginning of each line. It is used to improve readability of the code.


#141
  1. What is looping control flow allowing us to do?
    Looping control flow allows us to repeat execution of statements for a number of times.
  2. Describe what “loops” do in your own words.
    Loops will keep executing the statements within it until the exit condition is met.
  3. What is the difference between while and do-loops?
    Do-loop will execute the statements within it at least 1ce, while loop may not execute the statements within it if the starting condition is not met.
  4. What is indentation?
    Indentation is a number of white spaces or tab to create an easy to read structure for human of the code.