Post

Python Programming
Python Programming@PythonPr·
Python Quiz: Drop your answer in the comments.
Python Programming tweet media
English
25
7
108
9.2K
Jimmy Fikes
Jimmy Fikes@akajim·
@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
0
0
5
307
Fullstack Tester
Fullstack Tester@TesterFullstack·
@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
0
0
0
11
Bob Armstrong
Bob Armstrong@CoSyBobA·
@PythonPr Wow is that bizarre syntax & semantics . The more I learn about Python , the more I appreciate the extreme simplicity of CoSy .
English
0
0
0
189
Paylaş