Write range function to generate following sequence-
a. [1,2,3,4,5,6,7,8,9]
b. [10,13,16,19,22]
Answers
Answered by
32
Using python:
a.
b.
Explanation:
- range(a,b,c) returns numbers beginning from a to (b-1) and with a gap of c.
- range(a,b) is valid and the gap between the numbers is automatically accepted as 1.
sainiinswag:
Great effort
Similar questions