Telusko Courses:
Spring and Microservices Live Course : https://bit.ly/springmslive
Coupon: TELUSKO25 (25% Discount)
IndustryReady Java Spring Microservices Developer Live : https://bit.ly/JavaMS2
Complete Java Developer Course : https://bit.ly/CompJavaDev2
Coupon: TELUSKO20 (20% Discount)
Udemy Courses:
Java: https://bit.ly/JavaUdemyTelusko'>https://bit.ly/JavaUdemyTelusko
Spring: https://bit.ly/SpringUdemyTelusko'>https://bit.ly/SpringUdemyTelusko
Java For Programmers: https://bit.ly/javaProgrammers
For More Queries WhatsApp or Call on : +919008963671
website : https://courses.telusko.com/
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : https://bit.ly/TeluskoApp
In this lecture we are discussing about:
#1 break
#2 continue
#3 pass
In Python, break, continue, and pass are control flow statements that are used to
alter the normal flow of execution in a loop or conditional statement.
#1
break: The break statement is used to terminate a loop prematurely when a certain condition is met.
Once the break statement is encountered inside a loop, the loop is immediately terminated and the program continues
with the next statement after the loop.
for i in range(1, 6):
if i == 3:
break
print(i)
output:
1
2
#2
continue: The continue statement is used to skip the current iteration of a loop and move on to the next iteration,
without executing the remaining code in the loop for the current iteration.
for i in range(1, 6):
if i == 3:
continue
print(i)
output:
1
2
4
5
#3
pass: The pass statement is a placeholder statement that is used to indicate that no action should be taken. It is often used
as a placeholder when writing code that will be filled in later.
for i in range(1, 6):
if i == 3:
pass
else:
print(i)
output:
1
2
4
5
Github : https://github.com/navinreddy20/Python
Python for Beginners : http://bit.ly/3JOLQhl
Editing Monitors :
https://amzn.to/2RfKWgL
https://amzn.to/2Q665JW
https://amzn.to/2OUP21a.
Java: https://bit.ly/JavaUdemyTelusko'>https://bit.ly/JavaUdemyTelusko
Spring: https://bit.ly/SpringUdemyTelusko'>https://bit.ly/SpringUdemyTelusko
More Learning :
Java : https://bit.ly/3x6rr0N
Python : https://bit.ly/3GRc7JX
Django : https://bit.ly/3MmoJK6
JavaScript : https://bit.ly/3tiAlHo
Node JS : https://bit.ly/3GT4liq
Rest Api :https://bit.ly/3MjhZwt
Servlet : https://bit.ly/3Q7eA7k
Spring Framework : https://bit.ly/3xi7buh
Design Patterns in Java : https://bit.ly/3MocXiq
Docker : https://bit.ly/3xjWzLA
Blockchain Tutorial : https://bit.ly/3NSbOkc
Corda Tutorial: https://bit.ly/3thbUKa
Hyperledger Fabric : https://bit.ly/38RZCRB
NoSQL Tutorial : https://bit.ly/3aJpRuc
Mysql Tutorial : https://bit.ly/3thpr4L
Data Structures using Java : https://bit.ly/3MuJa7S
Git Tutorial : https://bit.ly/3NXyCPu
Donation:
PayPal Id : navinreddy20
https://www.telusko.com