- Looping allows us to go back to a point in the program where we created a condition and repeat it instead of having to rewrite it it literally, “loops”.
2)They repeat a certain code indefinitely or until a condition has been met.
-
A while Loop runs until the condition is false, the do part runs indefinitely whether the condition is true or false.
-
spaces/ breaks at the beginning of a code that do not affect the actual code they just make it easier and neater to visualize the work.