Combines a for loop into the creation of a new list based on an existing list. Adding conditional arguments if You simply add an if statement to the end: if else Examples Create list with 100 entries of 0 Create list with 100 random entries
Category: Loops
Loops
For loop – Each item in a collection For loop – Range While loop Loop Control Exit loop Exit and start next iteration