1def range_by(starting_number, ending_number):
2 #sequence = [starting_number]
3 sequence = []
4 while starting_number < ending_number:
5 sequence.append(starting_number)
6 starting_number += 1
7
8 return sequence
9
10print(range_by(-3,6))
1def range_with_step(start_num,end_num,step_num):
2 sequence2 = [start_num]
3 while start_num < end_num:
4 start_num += step_num
5 sequence2.append(start_num)
6 return sequence2
7print(range_with_step(0,6,3))