- The looping control flow allows us to execute pieces of code several times based on different conditions. It is a powerful tool for automation.
- Loops execute statements several times based on different conditions we give them as inputs. We have several types of loops; for loops, while loops and do-loops.
- While loops and do-loops are very similar. Both execute a piece of code until a specified boolean expression is equal to true or false. The difference is that in the while loop, the condition is checked to be true or false in the beginning of the loop, and in the do-loop, the condition is checked in the end of the loop. This means that the while loop does not have to execute, and the do-loop must execute at least one time before stopping.
- Indentation is a way to make pieces of code containing multiple statements cleaner and easier to read and understand. This is done by adding a specified number of spaces or tabs before each nested statement inside the bigger group of statements.
1.) To run a piece of code multiple times.
2.) 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.
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 wheter it should stop only after that first execution.
4.) In code where new blocks are opened inside other blocks, it can become hard to see where one block end and another begins. With proper indentation, the visual shape of a program corresponds to the shape of the blocks inside it.
Hey @Palmeguppsi!
Youâre very welcome! That was fantastic if it was your first ever program!
I bet your friends were impressed!
If you continue with that kind of approach, youâll progress really quickly! Donât worry about âwastingâ time, because itâs not⌠it seems like wasted time when someone like me points out how much simpler you could have made it but all that time struggling with it will be teaching you loads
That makes total sense, and we all need to code things so they make sense to us with the level of knowledge we have at a particular stage in our learning journey. What is so good, is that youâve been so open to my feedback of how it can be improved. The fact that youâre prepared to reflect and try to understand how things can be improved will also mean you will progress so much more quickly!
I love your enthusiasm⌠donât lose that spark!
-
Allows one to repeat a task without it having to be redundant.
-
repeat a set of instructions until complete
3)do loops are executed at least once. While loops test if true before running the program
4)It cleans up the code and makes it easier for everyone to read.
1.It allows us to go back to an earlier part of the program and execute it again.
2.It allows you to execute a certain part of the code until a wanted outcome
3.A do-loop always gets executed at least once. a while-loop can be entirely skipped if the conditions are met from the start.
4. adding spaces in front of statements that are part of a larger statement. this makes the code easier to read and work with.
-
What is looping control flow allowing us to do?
This allows us to loop through the code and iterate many things which would otherwise take a lot of code to write seperately. -
Describe what âloopsâ do in your own words.
They save us time by looping the same code through a number of variables. -
What is the difference between while and do-loops? While loops rely on a condition for example âWhileâ or so long as this is true keep doing something. Where as loops will iterate a specified amount of times.
-
What is indentation? This beautifies the code. makes it easier to read by indenting it hierarchly.
- What is looping control flow allowing us to do?
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.
A loop is a mechanism to repeat part of a program (statement) over and over again until the condition it checks is no longer true - What is the difference between while and do-loops?
A while loop keeps entering the statement as long as the expression produces a value that gives true
A do loop always executes itâs body at least once, and it starts testing whether it should stop only after that first execution
So in a while loop if the expression gives false it stops. The do loop will always execute once
- What is indentation?
Just a way of making code look nicer and readable
Something
â like
------ this
- Looping control flow is a feature that allows the programmer to go back to a previous point in the program and repeat it in the current program state.
- Loops simplify the process of executing a program by letting the computer know a complete set of directions - which could involve a large amount of computation - in a relatively brief statement.
- A do loop and a while loop are similar. A while loop will continue to execute for as long as the boolean value remains true. A do loop will always execute at least once, and only afterwards decide whether it should stop.
- Indentation is a way of formatting blocks with spaces so that the structure of the code stands out.
- Looping control flow= allows us to go back to some point on the program where we were before and repeat it with our current program state.
2.Loops is a way to run a piece of code multiple times. - Do-loops=always execute the code at least once, before it starts testing whether is should stop only after its first execution.
âWhhileâ= would evaluate the condition first before execution. - The role of Identation inside blocks is to make structure of the code stand out.
- What is looping control flow allowing us to do?
A loop is a piece of code code that can run multiple times. 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.
They repeat an action without having to write the same code all over again.
- 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.
- What is indentation?
The role of this indentation inside blocks is to make the structure of the
code stand out.
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. repeating it self?
3. the main difference between a while loop and do while loop is that while loop check condition before iteration of the loop . On the other hand, the do while loop verifies the condition after the execution of the statements inside the loop.
4. (typesetting), the placement of text farther to the right, or left, to separate it from surrounding text.
-
Looping control flow is allowing us to go back to some point in the program where we were before and repeat it with our current program state.
-
âLoopsâ run a piece of code through a binding several times.
-
While
loops continue entering a statement, such asif
, as long as the result of the expression is true when converted to Boolean. On the other handdo
loops always execute their bodies at least once and then start testing whether or not they should stop only after that first execution. -
Indentation is the process whose role is to make the structure of the code stand out.
-
What is looping control flow allowing us to do?
it lets us return to a point in the program where were before and repeat it with a current program. -
Describe what âloopsâ do in your own words.
A loop repeats an action until the program ends or continues to another. -
What is the difference between while and do-loops? the difference is when the conditions runs. A âwhileâ loop runs a piece of code multiple times. And a âdoâ loop always executes at least once and continues testing until it reaches a when point that it should stop; after the body of the loop.
-
What is indentation?
you indent inside a block to make the structure of the code stand out visually.
1 What is looping control flow allowing us to do?
The looping control flow allows the programmer to continue or to break the loop.
2 Describe what âloopsâ do in your own words.
It allows the program to do repetitions indefinitely until it finds a true expression.
3 What is the difference between while and do-loops?
The while loop executes a statement repeatedly while it is true. When the condition becomes false, it gets out of the loop and moves on to the next task.
The do while loops comletes the task first then tests the output, if the condition is false it repeats the process until the condition becomes true.
4 What is indentation?
Indentations in writng a program is just a way to make it easier to read and understand.
- To do things faster, if you need to do something many times, you can put it in the loop and when you have reached a satisfactory point, you can exit the loop
- Do certain tasks again until not needed anymore.
- Do loop runs through atleast once until it checks wether to continue
- Space to make code easier to understand
-
Looping Control flow allows us to go back to a previous place in the code and repeat it.
-
Loops make the program run the code until it reaches a specific condition is met.
-
A while loop runs until it reaches a specified value and do - loops runs until it gets any valid input.
-
Spaces at the beginning of lines of code to help programmer visualize the scope of the code.
- Looping control allows us/the program to be run to go back to a certain point in the program and repeat an action in the form of an expression, until said actionâs condition is met, resulting in a Boolean True outcome.
- Loops is a control flow statement that allows you to search 4/test a condition repeatedly until the result you need to be true is met and will continue to repeat in order for the program you are running to continue with the results u need to complete the programâs objective.
- While loop tests at the start of the loop so the loop will be done zero or more times. A while test means to perform the operation while a condition is met. A do-loop test at the end of the loop so the loop will be done one or more times until a condition is met in order to continue
- Indentation though not required is mainly for the structure of ur coding, it makes it easier to see ur coding blocks as opposed to one big line of code.
By the way guys the Dev webenar was great but I couldnt get the pdf from the website address u provided. if u can send an alternative means for this pdf that would be great. Thanks
I have not received a reply to my webinar question? Is it a secret?
- Looping control flow lets the programm gate back into a point and repeat the same process with the new state of a binding
- loops are doing the same thing (with other inputs) over and over again (until you hopefully stop them and do not create an error)
- while vs do = do runs at least one time and checks weather it should run again or not
- For Javascript indentatrions do not have any functions. it just helps you and aotyher programmers to structure the content in readable way