Exercises Write a program to perform the following operations using list and tuples. Create the list Update list using negative index Create a sub list using Slicing Display the elements in sorting order Delete the elements using Remove, pop, and clear Converts a list into tuple. Find the length, maximum and minimum value Concatenation Repetition Membership Iteration 2 Write a Python program for implementing binary search on a sorted array of N numbers. Write a python function, find_pairs_of_numbers() which accepts a list of positive integers with no repetitions and returns count of pairs of numbers in the list that adds up to n The function should return 0, if no such pairs are found in the list.. Sample Input 1,2,7,4,5,6 0,316 3,4,1,8,5,9,0,619 3 14 Expected Output 4. A teacher is in the process of generating few reports based on the marks scored by the students of her class in a project-based assessment. Assume that the marks of her 10 students are available in a tuple. The mar...
Comments
Post a Comment