Program to swap the first half elements with the second half elements of a list of numbers.
Q. Program to swap the first half elements with the second half elements of a l…
Q. Program to swap the first half elements with the second half elements of a l…
Q. Differentiate between append() and extend() functions of list. Answer :- The…
Q. Read a list of n elements. Pass this list to a function which reverses this …
Q. Write a program to read elements of a list. a)The program should ask for the…
Q. Write a program to read a list of elements. Input an element from the user t…
Q. Write a program to read a list of elements. Modify this list so that it does…
Q. Write a program to read a list of n integers and find their median. Note: …
Q. Write a function to return the second largest number from a list of numbers.…
Q. Write a function that returns the largest element of the list passed as para…
Q. Write a program to read a list of n integers (positive as well as negative).…
Q. Write a program to find the number of times an element occurs in the list. A…
Q. The record of a student (Name, Roll No., Marks in five subjects and percenta…
Q. Consider a list: list1 = [6,7,8,9] What is the difference between the follow…
Q. What will be the output of the following code segment: a. myList = [1,2,3,4,…
Q. What will be the output of the following code segment: myList = [1,2,3,4,5,6…
Q. Consider the following list myList. What will be the elements of myList afte…
Q. What will be the output of the following statements? i.list1 = [12,32,65,26,…