Q. Which of the following will create a list of numbers from 0 to 9?

  • (A) list(range(10))
  • (B) range(1,10)
  • (C) [0:10]
  • (D) list(0,10)
πŸ’¬ Discuss
βœ… Correct Answer: (A) list(range(10))
Explanation: `range(10)` generates numbers from 0 to 9, and `list()` converts it into a list.
Explanation by: Mr. Dubey
`range(10)` generates numbers from 0 to 9, and `list()` converts it into a list.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate