Ebazhanov/linkedin-skill-assessments-quizzes

Python question: What does [X*2 for x in range(1,n)] return?

Bart-Source opened this issue · 1 comments

New Python Question 1
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

Yes, it returns all even numbers less than 2*n.