A

Admin • 832.52K Points
Coach

Q. What will `print([1, 2, 3] * 2)` output?

  • (A) [2, 4, 6]
  • (B) [1, 2, 3, 1, 2, 3]
  • (C) [1, 1, 2, 2, 3, 3]
  • (D) [6]
  • Correct Answer - Option(B)
  • Views: 16
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Multiplying a list by 2 duplicates the list.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.