What will be the output of the following Python code?
list1 = [11, 2, 23] list2 = [11, 2, 2] print(list1 < list2)
निम्नलिखित Python कोड का आउटपुट क्या होगा?
reverse function reverse the list i.e. the value of last index moves to first and last second value moves to second index and so on.
so the list after reverse is : [3, 1, 25, 5, 20, 5, 4, 3]
pop() removes the element at the position specified in the parameter.
so it remove the value of index 1 which is 4 so after pop the list will be [3, 5, 20, 5, 25, 1, 3]