We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Complexity Quiz - Example 1

Consider the following code:

# names is an array of strings
def get_name_at_index(names: list[str], i: int) -> str:
    return names[i]