LinkedIn Python Skill Assessment Quiz Answers

Which command will create a list from 10 down to 1? Example:

Latest Update on 25th January, 2022 by Certification Course Answers

Which command will create a list from 10 down to 1? Example:

[10,9,8,7,6,5,4,3,2,1]

  1.  reversed(list(range(1,11)))
  2.  list(reversed(range(1,10)))
  3.  list(range(10,1,-1))
  4.  list(reversed(range(1,11)))

Correct Answer:

  •  list(reversed(range(1,11)))

Latest Updates

No posts found in this category.