A.Write a program to pass a list to a function and return it in the reverse order. B. Write...
Author: admin_admin
the function remove_negative(Lst) to remove the negative elements and return the positive
A. Write the function remove_negative(Lst) to remove the negative elements and return the positive elements from a list. Example:...
A pivot element to partition unsorted list is used in
A. A pivot element to partition unsorted list is used in: a. Selection sort b. Merge sort c. Insertion...
In linear search, the elements are examined sequentially starting from the fi rst element.
A. True or False 1. In linear search, the elements are examined sequentially starting from the fi… A. True or...
create the class Point
A. Write a program to create the class Point. Perform the following operations on it. a. Initialise. A. Write a...
implement the concept of multiple inheritance.
A. Write a program to implement the concept of multiple inheritance. a. Create the parent class… A. Write a program...
indexing and slicing of tuples done
A. How is indexing and slicing of tuples done? B. Which operator is used to access the elements in a...
Write a function called how_many, which returns the sum of the number of values associated with
A. Write a function called how_many, which returns the sum of the number of values associated with a A. Write...
Write a program to display the hexagon given as follows
A. Write a program to display the hexagon given as follows B. Write a program to display the logo of...
Opening a file in read mode performs which operation? a. Creates a new file b. Reads consecutive
A.Opening a file in read mode performs which operation? a. Creates a new file b. Reads consecutive.. A.Opening a file...