Python question: What does [X*2 for x in range(1,n)] return?
Bart-Source opened this issue · 1 comments
Bart-Source commented
I assume this returns a list with all even numbers less then 2*n since it starts at 1 and ends before n.
https://www.w3schools.com/python/ref_func_range.asp
Just2Deep commented
Yes, it returns all even numbers less than 2*n.