explain the break statement used in python will an example
Answers
Answered by
14
Answer:
Image result for explain the break statement used in python will an example
The break statement is used to terminate the loop when a certain condition is met. For example, lets say we are searching an element in a list, so for that we are running a loop starting from the first element of the list to the last element of the list.
Answered by
9
Answer:
The break statement is used to terminate the loop when a certain condition is met. For example, lets say we are searching an element in a list, so for that we are running a loop starting from the first element of the list to the last element of the list.
Explanation:
Hope this answer is helpful to u and give me thanks and take thanks please follow also &please mark me as brainlist.
Similar questions
Science,
3 months ago
Geography,
3 months ago
Biology,
3 months ago
Social Sciences,
5 months ago
Math,
1 year ago