13. Distinguish between break and continue with suitable looping statements ?
14. Briefly discuss about append(), remove() and sort() functions by suitable exa
15. Explain the terms Unpacking and Packing with examnles?
Answers
Python break statement
The break statement terminates the loop containing it. Control of the program flows to the statement immediately after the body of the loop.
If the break statement is inside a nested loop (loop inside another loop), the break statement will terminate the innermost loop.
hope it will be useful
please follow me and mark mi as brainleast
Answer:
13.Break statement mainly used to terminate the enclosing loop such as while, do-while, for or switch statement wherever break is declared. Continue statement mainly skip the rest of loop wherever continue is declared and execute the next iteration.
14.sort() :- This function sorts the list in increasing order
.remove() :- This function is used to delete the first occurrence of number mentioned in its arguments.
15.to remove the contents of unpack a suitcase. b : unburden, reveal must … unpack my heart with words— William Shakespeare. 2 : to remove or undo from packing or a container unpacked his gear
Explanation:
please like my answer