CBSE Class 11 Computer Science
Question 115 of 161
Flow of Control — Question 24
Back to all questions 24
Question Question 11j
Predict the output of the following code fragments:
for y in range(500, 100, 100):
print (" * ", y)Answer
This code generates No Output.
The for loop doesn't execute as range(500, 100, 100) returns an empty sequence — [ ].