Python 3.6 Tutorial 9(Break and Continue Statements)

preview_player
Показать описание
In this video we discuss finding prime numbers with Break and Continue statements.

Earlier when I am discussing the for loop with the range I said up to 9 when I meant up to 10 but not including 10.

Also mentioned while loops for continue statements but later corrected myself.

Рекомендации по теме
Комментарии
Автор

Thank you so much for the explanation and code. But, I don't think you explained about how to use 'Break' and 'Continue'. Would you explain why you have to put 'Break' there? What makes difference?

vincentkim
Автор

Whats the difference between using the "continue" statement vs. the "else" statement? Both gave me the same results in this example.

kanishksehgal