loops while guessestaken line is while statementwhich indicates the beginning of while loop loops let you execute code over and over again howeveryou need to learn few other concepts first before learning about loops those concepts are blocksbooleanscomparison operatorsconditionsand the while statement blocks several lines of code can be grouped together in block every line in block of code has the same minimum amount of indentation you can tell where block begins and ends by looking at the number of spaces at the front of the lines this is the line' indentation block begins when line' indentation increases (usually by four spacesany following line also indented by four spaces is part of the block the block ends when there' line of code with the same indentation before the block started this means blocks can exist within other blocks figure - is diagram of code with the blocks outlined and numbered in figure - line has no indentation and isn' inside any block line has an indentation of four spaces since this indentation is larger than the previous line' indentationa new block has started this block is labeled ( in figure - this block will continue until line with zero spaces (the original indentation before the block beganblank lines are ignored line has an indentation of eight spaces eight spaces is more than four spaceswhich starts new block this block is labeled ( in figure - this block is inside of another block figure - blocks and their indentation the black dots represent spaces