Post

@PythonPr B. Start with 2 and skip 5 to 7. Then, 7 + 5 is 12, and then 12 + 5 would be 17, but we have to stop at 16. So, [2,7,12]
English

@PythonPr The correct answer is B. [2, 7, 12]
Reason:
In range(), 17 is the stop value, which is excluded. The loop stops just before this value.
Hence, the output is [2, 7, 12]
English

@PythonPr Wow is that bizarre syntax & semantics .
The more I learn about Python , the more I appreciate the extreme simplicity of CoSy .
English















