Convert Python while loop into For loop
code
how does the range() function in python change from object to list, when using it in a for loop?
if we use the range() function in python, we will get a range object. we will use list() to convert in into a list. but if we use range() in for loop, instead of getting a indexnerror, it is directly modified as a list? what is happening?