for range in ranges:
print(range)
I have used the above code by mistake overwrote range
keyword - Is there any way to retrieve this keyword?
You can get it from the builtins
module:
import builtins
range = builtins.range
Or if you're using Python 2.7 or earlier:
import __builtin__
range = __builtin__.range