Advertisements
Advertisements
Question
If List = [10 ,20 ,30 ,40 ,50] then List[2] = 35 will result ______
Options
[35,10,20,30,40,50]
[10,20,30,40,50,35]
[10,20,35,40,50]
[10,35,30,40,50]
Advertisements
Solution
If List = [10,20,30,40,50] then List[2]=35 will result [10,20,35,40,50].
APPEARS IN
RELATED QUESTIONS
If List = [17,23,41,10] then List.append(32) will result ______
Which of the following statement is not correct?
What is a List in Python?
How will you access the list elements in reverse order?
What will be the value of x in following python code?
List1 = [2,4,6[1,3,5]]
x = len(List1)
Differentiate del with remove( ) function of List.
Write a short note about sort( ).
What is the difference between List and Dictionary?
What the different ways to insert an element in a list. Explain with a suitable example.
What is the purpose of range( )? Explain with an example.
