Question #65

What it the length of range(-2, 2)?

4 elements! The syntax of range() is range(start, stop, step) . Here range start with -2 and stop at (before) 2: -2, -1, 0 and 1. (w3schools.com/python/ref_func_range.asp)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵


Similar questions: