python print range as list code example Example: python create list from range intList = list(range(r1, r2+1))