228k views
0 votes
Which range function will generate a list of all even numbers between 12 and 84 inclusive? range (12, 86, 2) range (11, 84, 3) range (12, 86, 4) range (10, 84, 2)

1 Answer

6 votes

Answer:

The answer is "range (12, 86, 2)".

Step-by-step explanation:

The range() function generates a numerical sequence across items. In the above-selected choice, the range function is correct because it takes three parameter values "start, stop, and step". In this choice, it takes three number values "12, 86, and 2", in which 12 is the starting point, and 86 is the ending point, and 2 is used for print even numbers between them, that's why the other choice is wrong.

User Sagar Hirapara
by
4.2k points