A

Admin • 802.91K Points
Coach

Q. Which of the following is a valid list declaration?

  • (A) list = (1, 2, 3)
  • (B) list = [1, 2, 3]
  • (C) list = {1, 2, 3}
  • (D) list = <1, 2, 3>
  • Correct Answer - Option(B)
  • Views: 5
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Lists are defined using square brackets `[]`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.