For Loops
For Loops
Iterate through code like lists
, tuple
, dictionary
:
lists
, tuple
, dictionary
:Note:
This runs exactly the same way with tuple
Iterating through string
:
string
:The "break" argument is used to get out of a loop early and move on to the next part of the code that you are running
The "exit" argument is used to stop the code completely
The "continue" argument prevents the next lines of code in the loop to run but restarts the loop:
Last updated