continue Statement से Loop में iterate हो रहे कुछ statement(s) को skip करके अगले statements को execute करता है |
Syntax for continue Statement
continue
Example for continue Statement
Source Code :
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for n in nums :
if(n == 5) :
print("Skipped Element :", n)
continue
print(n)
Output :
1 2 3 4 Skipped Element: 5 6 7 8 9 10







No comments: