151k views
3 votes
PLS HURRY

A sequence index uses a built-in function called length or len() to provide a total number of elements in an ordered list. With which iteration does this function

work?


a for loop

a while loop

an infinite loop

a single statement loop

User Zostay
by
5.6k points

2 Answers

1 vote

Answer:

a single statement loop

Step-by-step explanation:

User Vinanghinguyen
by
5.5k points
7 votes

A sequence index uses a built-in function called length or len() to provide a total number of elements in an ordered list,the Iteration is used for a Loop Function

Step-by-step explanation:

An iterative function is that function or one that loops to repeat some part of the code, whereas a recursive function is one that calls itself again to repeat the code.

Using a simple for loop to display the numbers from one to ten is an iterative process.

When we execute the first set of instructions again, it is called an iteration. When a sequence of instructions is executed again and again in a repeated manner, it is called a loop.

A sequence index uses a built-in function called length or len() to provide a total number of elements in an ordered list,the Iteration is used for a Loop Function

User Musaab
by
5.1k points