P

Parvesh Kanani • 2.84K Points
Extraordinary

Q. Output of the following python program will be?

Code:
l = [1,2,6,5,7,8] 
l.insert(9)
  • (A) Error
  • (B) l=[9,1,2,6,5,7,8]
  • (C) l=[1,2,6,5,7,8,9]
  • (D) l=[1,2,6,5,9.7,8] (insert randomly at any position)
  • Correct Answer - Option(A)
  • Views: 158
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics