Loops - Reading Assignment


#162

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 is a form of control flow, and what it does is it executes code multiple times to make things easier.
3. 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.The role of this indentation inside blocks is to make the structure of the
code stand out.


#163

1. What is looping control flow allowing us to do?
Looping control allows us to repeat an operation, and affect variables, as many times as needed, without having to repeat segments of code for each loop.

2. Describe what “loops” do in your own words.
Loops change the flow of how the code flows and executes, and performs an operation or set of operations repeatedly, as needed. Loops are a very clean, elegant and fast way to repeat operations in a short snippet of code.

3. What is the difference between while and do-loops?
A DO loop executes its body at least one time, and starts testing after the first execution. A WHILE loop can avoid a loop from the very beginning, without having to execute.

4. What is indentation?
Indentation is just a convention or way of writing code where spaces are used at the beginning of each line to make it clear where the different nested statements or functions begin and end. Indentation is not required from the perspective of the machine. But it makes it much easier to read and understand the code from a human perspective, and so it is a good practice to use indentation. It saves time and makes mistakes easier to find.


#164

What is looping control flow allowing us to do? 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 allows you to execute a the same code a certain amount of times, or continues until the condition is no longer true.
What is the difference between while and do-loops?
The while loops keep adding zeros in front of the number string until they are at least three characters long.
A do loop is a control structure similar to a while loop. The only difference is one part, and that is a do loop always executes its body at least once, and it starts testing whether it should stop only after that first execution of the code.
What is indentation? Helps the structure of the code stand out


#165

What is Looping Control Flow allowing us to do?
Looping control flow allows u 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.
A loop makes the program repeat itself until the outcome is achieved.

What is the difference between while and do-loops?
A do-loop always executes its body at least once, and starts testing whether it should stop only after that first execution.

What is indentation?
The role of indentation inside blocks is to make the structure of the code stand out.


#166
  1. Looping control allows us to go back to the loop condition and repeat the code, which is wrapped in the loop.
  2. Instead of writing down every single step of a repeatable action in a straight forward control flow you can summarize the problem in a loop to minimize the effort in writing code
  3. To get into the while-loop the condition has to be fulfilled before entering the loop. the do-loop can be entered first time without fulfilling the condition, which is written in the end of the do-loop. But to stay in the loop for another round and the following the condition has to be fulfilled.
  4. Indentation means to enter line breaks and space to make the code readable and structured for the programmer.

#167
  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 repeat statements or blocks of code until it reaches its boundaries or certain conditions are met. It lets us run code multiple times, making less work for us as programmers.

  3. While loops continue until the expression produces true when converted to Boolean. A do loop differs only in that it always executes its body at least once, and it starts testing whether it should stop only after that first execution.


#168
  1. Looping helps us to automatize tasks
  2. A loop executes an order over and over again until a set condition gets fullfilled
  3. Do loops get executed at least once, while loops may not execute their body class
  4. Indentation is a way to make the code more readable through text spacing from the marging

#169

What is looping control flow allowing us to do? it allows us to run code in a functional way and it serves as sort of a shortcut.
Describe what “loops” do in your own words. they allow us to run a set command parameter over and over w/o the tedious amount of work, but letting the code do the repetitive work.
What is the difference between while and do-loops? do loops just execute one single command while, shile loops execute over and over again until they reach the predetermined end.
What is indentation? a way of formatting code. or organizing your code.


#170
  1. To go back to the same point in the program where we were before and repeat it with our current program state
  2. Run a piece of code multiple times without having to write it out each time
  3. A While Loop will test and then execute. A Do Loop will execute then test
  4. Adding spaces in front of statements so that the visual shape of the code stands out

#171

What is looping control flow allowing us to do?
repeat an action

Describe what “loops” do in your own words.
repeat an action until a condition is satisfied
What is the difference between while and do-loops?
a do loop is similar to a while loop, but it executes at least one time prior to a condition check
What is indentation?
text formatting for the body of a loop to help the programmer remember which part is within the loop delimiters.


#172

What is looping control flow allowing us to do?
Run a piece of code multiple times
Describe what “loops” do in your own words.
Loops re-perform a line of code, but adds conditions (like +2, counters) every time the code is performed again.
What is the difference between while and do-loops?
Do loops execute it’s body at least once, and THEN it starts to check whether it should stop or not. While loops begin to add conditions immediately after input.
What is indentation?
Indentation allows the structure of the code to pop out and be obvious for the coder/reader. Sometimes new blocks are opened inside other blocks and it’s difficult to see which block was opened at what time.


#173

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” is created for us to run a piece of code multiple times until certain criteria is met.
3, Main difference is that 'Do-loops" will always execute the code at least before it starts testing whether it should stop only after its first execution. “While” will evaluate the condition first before execution.
4, Indentation is the blank space created to let the code structure stand out.


#174

What is looping control flow allowing us to do?
Automate Stuff that has to be done over and over

Describe what “loops” do in your own words.
Allows you to do a process over and over on different criteria

What is the difference between while and do-loops?
do runs at least once through the code, a while could skip the whole thing if the condition is met

What is indentation?
A way to make your code easier to read


#175
  1. Looping control flow allows us to create a repeatable program that continues until we hit a certain value we are trying to get to

  2. Loops allow programmers to do less work by essentially repeating a certain math problem over and over until the program terminates at specified value. This is useful for repetitive logic problems.

  3. While loops always loop until a condition is met. Could loop zero times if met. The do-loop must loop at least once before testing the condition. In both cases they loop when condition (boolean) is true and continue until the statement evaluates to false. So main difference is that while tests condition right away and do-loop tests condition after looping at least once.

  4. Indentation is used to structure code. Useful for the human end - the programmer, but not necessary for the computer to read the code anymore effectively. Its good practice, just as you would follow appropriate formatting in language writing.


#176
  1. What is looping control flow allowing us to do?
    Execute the same piece of code multiple times until the condition changes.

  2. Describe what “loops” do in your own words.
    They execute the same piece of code multiple times. So they enable the program to go back in the control flow and execute the same piece of code again with current state.

  3. What is the difference between while and do-loops?
    While checks the condition before executing the code so it may never execute the code inside the loop and do-loop will execute at least once since the condition is checked at the end of the loop block.

  4. What is indentation?
    Is a way the program code is formated - using indentation makes the code more readable to the programmer.


#177
  1. Looping allows us to go back over again and excute a piece of code if the condtions are met
    2 Loops be like hey that lil statement was true i need to go back over that until i met the up most condition set then i can finally stop.
  2. While loops keeps entering that statement as long as the expression produces a values that gives true when converted to boolean, the do loops executes at least once and it test if it should stop only after execution
  3. The role of indentation is to make code stand out in format thats easier to read

#178
  1. 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 are code constructs that allow us to repeat different operations multiple times unitl a condition is achieved.
  3. While-loops will only be entered into if a certain condition is met and repeat the code within its block until that condition becomes false.
    Do-loops will always execute the code within its block at least once, because the condition is evaluated after the block of code is run. It will continue to execute the block of code until the condition evaluates to false.
  4. Indentation are are spaces which make the code easier to understand. The level of indentation corresponds to the degree of nested blocks. Most code editors automatically indent new lines the proper amount.

#179

What is looping control flow allowing us to do?
Looping conrtol flow allows us to go back to some point in the programm and repeat it with current program state
Describe what “loops” do in your own words.
Loops repeat actions in a program
What is the difference between while and do-loops?
A do loop always executes its body at least once, and start testing whether it should stop onlay after that first execution
What is indentation?
indentation blocks make the struture 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.


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

There are several keywords that are used to alter the flow of a program. The control flow statements can be executed multiple times or only under a specific condition. The if, else, and switch statements are used for testing conditions, the while and for statements to create cycles, and the break and continue statements to alter a loop.

  1. Describe what “loops” do in your own words.
    A loop is a sequence of continuous instructions until a certain condition is reached.

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

There is a contrast between while loop and do-while loop. The while loop tests the condition before the code within the block is executed. While the do-while loop is an exit-condition loop. That is, the code must always be executed first and then the expression or test condition is evaluated. That if it is true, the code executes the body of the loop again.

  1. What is indentation?

In computer programming indentation (blank space) is used to make the codes look structurally more presentable.


#181

What is looping control flow allowing us to do?

  • allows repetition of the code until a condition is met
    Describe what “loops” do in your own words.
  • the program statement that began the loop keeps repeating whilst a Boolean value keeps returning ‘true’
    What is the difference between while and do-loops?
  • ‘while’ executes until ‘false’ is returned from a boolean test, a do loop always executes at least once, and it starts testing whether it should stop only after that first execution
    What is indentation?
  • spaces or tabs used to make code more readable