Why can't I traverse the tuple within the function using the integer variable I created prior to defining the function?

Tuples can only specify literals for indexes to ensure that no failures occur.
You can use array type instead.

1 Like