Question: What sequence is generated by range ( 2 1 , 2 6 ) ? Correct nswer 2 1 , 2 2 , 2 3 ,
What sequence is generated by range
Correctnswer
Explanation
The range function in Python generates a sequence of numbers. When called as range it starts from and ends at since the end value is not included in the sequence generated by range. Therefore, it produces the numbers and
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
