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