--
"else" is not required to terminate a for or while loop. It can be useful in some scenarios if you need to run something after finishing a loop. Usually you don't have print statements saying loop finished.
--
"else" is not required to terminate a for or while loop. It can be useful in some scenarios if you need to run something after finishing a loop. Usually you don't have print statements saying loop finished.
Data Scientist and Chartered Aeronautical Engineer (MEng CEng EUR ING MRAeS) with over 15 years experience in the Aerospace, Defence and Rail Industry.