Searching for: Optionals in Python
For Loop
Language: Python

The for loop is used to iterate through a sequence. When a range is provided as the sequence, it behaves like a C-style for loop. For all other sequences (arrays, etc.), it behaves like a for each loop.

List Comprehensions
Language: Python

List comprehension is used to dynamically generate lists.

Tuples
Language: Python

Tuples are used to store multiple items sequentially in one variable. Similar to lists, but immutable.

Functions
Language: Python

A function is a block of code that can be called from another location in the program or class.


  Next Page >