What is the range defined by the below statement?

21. What is the range defined by the below statement -

range(13, 17, 2)
  1. 13 14 15 16 17
  2. 13 14 15 16
  3. 13 15
  4. 13 15 17

Answer: C) 13 15

Explanation:

The range will exclude the last value and iterate by 2 for each value.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.