how to use range method in python code example Example: range in python for i in range (start, step, stop): dosomething()