What is the use of the "range" function in Python?