Coding & Data
Visualization
Dr. Zakaria El Hathat
Department of Supply Chain & Information Systems
Rabat Business School, International University of Rabat
Break statement
Allows us to go(break) out of a loop preliminary.
Adds a bit of controllability to a while loop.
Usually used with an if.
Can also be used in a for loop.
Break statement example
Functions
A function is a block of code that performs a specific task.
It helps make your program modular, organized, and reusable.
Functions
Functions accept arguments and execute a piece of code.
Often, they also return values.
Function example
Function example