GIAC
GPYC · Question #66
What will the last value of V be when Python executes the following control loop? for x in range(4, 20, 2): print(x)
The correct answer is D. 18. You've hit your limit · resets 1pm (America/New_York)
Python Fundamentals & Command Line Tools
Question
What will the last value of V be when Python executes the following control loop? for x in range(4, 20, 2): print(x)
Options
- A4
- B20
- C2
- D18
How the community answered
(20 responses)- A5% (1)
- B10% (2)
- D85% (17)
Explanation
You've hit your limit · resets 1pm (America/New_York)
Topics
#for loop#range function#iteration#control flow
Community Discussion
No community discussion yet for this question.