The 'range' function in Python is used to generate a sequence of numbers within a specified range. It is commonly used in conjunction with 'for' loops to control the number of iterations.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.