if student =student_nameprint(marks[student]break elseprint ('no entry with that name found 'outputno entry with that name found while loopthe while loop in python is used to iterate over block of code as long as the test expression (conditionis true we generally use while loop when we don' know the number of times to iterate beforehand syntax of while loop in python while test_expressionbody of while in the while looptest expression is checked first the body of the loop is entered only if the test_expression evaluates to true after one iterationthe test expression is checked again this process continues until the test_expression evaluates to false in pythonthe body of the while loop is determined through indentation the body starts with indentation and the first unindented line marks the end python interprets any non-zero value as true none and are interpreted as false examplepython while loop program to add natural numbers up to sum + + + to take input from the usern int (input ("enter ") initialize sum and counter sum = while <nsum sum + update counter