(enter 'quitwhen you are finished san francisco ' love to go to san franciscoplease enter the name of city you have visited(enter 'quitwhen you are finished quit note you can use the break statement in any of python' loops for exampleyou could use break to quit for loop that' working through list or dictionary using continue in loop rather than breaking out of loop entirely without executing the rest of its codeyou can use the continue statement to return to the beginning of the loop based on the result of conditional test for exampleconsider loop that counts from to but prints only the odd numbers in that rangecounting py current_number while current_number current_number + if current_number = continue print(current_numberfirst we set current_number to because it' less than python enters the while loop once inside the loopwe increment the count by at uso current_number is the if statement then checks the modulo of current_number and if the modulo is (which means current_number is divisible by )the continue statement tells python to ignore the rest of the loop and return to the beginning if the current number is not divisible by the rest of the loop is executed and python prints the current number avoiding infinite loops every while loop needs way to stop running so it won' continue to run forever for examplethis counting loop should count from to counting py while < print(xx +