CBSE Class 11 Informatics Practices
Question 27 of 75
Conditional and Looping Constructs — Question 9
Back to all questions1,4,7,10,13,16,19,
Reason — The above code uses a for loop to iterate over a sequence of numbers generated by range(1, 20, 3). This range starts at 1, ends before 20, and increments by 3 in each step. During each iteration, the current value of x is printed followed by a comma due to the end=',' parameter in the print function. Therefore, the output is 1,4,7,10,13,16,19, showing the sequence of numbers separated by commas.