Numbers
Data Types
Fundamentals
Fundamentals
Given x and y, you need to print numbers from x to y inclusive
def row(x, y):
return [i for i in range(x, y + 1)]
test.assert_equals(row(0, 0), [0])
test.assert_equals(row(-5, 10), [-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
test.assert_equals(row(1, 15), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])
test.assert_equals(row(10, 10), [10])