πŸ“Š Python
Q. What is returned by `list(range(2, 10, 2))`?
  • (A) [2, 4, 6, 8]
  • (B) [2, 3, 4, 5, 6, 7, 8, 9]
  • (C) [2, 5, 8]
  • (D) [10, 2, -2]
πŸ’¬ Discuss
βœ… Correct Answer: (A) [2, 4, 6, 8]

Explanation: `range(2, 10, 2)` generates numbers from 2 to 9 with a step of 2.

Explanation by: Mr. Dubey
`range(2, 10, 2)` generates numbers from 2 to 9 with a step of 2.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate