To quite from a loop in python, we use the break function.
In the while statement, we are putting an always true condition so that the loop will always run.
if new_word == ”:
If the new_word is “” then, it execute the “break” statement. the “break” statement will break the while loop and then execute the next statement after the while loop. In this case, it is the print statement.