List comprehension

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

Read More

For loops

Simple For Loop Will output: 1 2 3 4 Reverse Loop Will output: 5 4 3 2 1 0 Nested For Loops For loop – Each item in a collection For loop – Range For loop by index Loop Control Exit loop Exit and start next iteration

Read More