To insert 5 to the third position in list1, we use which command?
To insert 5 to the third position in list1, we use which command? A. list1.insert(3, 5)लिस्ट 1.इन्सर्ट (3, 5)
B. list1.insert(2, 5)लिस्ट1.इन्सर्ट(2, 5)
C. list1.add(3, 5)लिस्ट1. ऐड(3, 5)
D. list1.append(3, 5)लिस्ट1.append(3, 5)
Correct Answer is :A. list1.insert(3, 5)
ExplanationExecute in the shell to verify.
Python
Why are local variable names beginning with an underscore discouraged in Python Programming?
they slow down executionthey are used to indicate a private variables of a classthey are used to indicate global variablesthey confuse the interpreter
they slow down execution
they are used to indicate a private variables of a class
they are used to indicate global variables
they confuse the interpreter