Showing posts with the label List Manipulation

There is some code missing in this code. Your task is to supply this.

Q. Here is a partially completed code that takes two lists and prints "Yes…

Here is a partially completed program code that takes a list of strings and prints long string

Q. Here is a partially completed program code that takes a list of strings and …

Create a list L containing first 10 even numbers. Write statements for following:

Q. Create a list L containing first 10 even numbers. Write statements (one stat…

Taking list a = [1, 2, [3, 4], 5], after we make a[1:2] = [[2, 3], 4].

Q. Taking the list a = [1, 2, [3, 4], 5], after we make a[1:2] = [[2, 3], 4]. V…

What do you understand by true copy of a list? How is it different from shallow copy?

What do you understand by true copy of a list? How is it different from shallow…

Write a function in python, which accept a list of names as argument and return total number

Q. Write a function in python, which accept a list of names as argument and ret…

True / False For List Manipulation Class 11 CS, IP

True / False For List Manipulation Class 11 Computer Science (CS), Informatics …

Fill In the Blanks For List Manipulation Class 11 CS, IP

Fill In the Blanks For List Manipulation Class 11 Computer Science (CS), Inform…

MCQ For List Manipulation Class 11 CS, IP

Multiple Choice Question For List Manipulation Class 11 Computer Science (CS), …

Write a function to swap the content with next value divisible by 5 so that the resultant array will look like:

Q. An array Num contains the following elements: 3, 25, 13, 6, 35, 8, 14, 45 Wr…

Write a program to multiply an element by 2 if it is odd index for a given list containing both number and strings.

Q. Write a program to multiply an element by 2 if it is odd index for a given l…

Write a program that takes an array S as an argument and add all the odd values and display the sum.

Q. Write a program that takes an array S as an argument and add all the odd val…

Write the output of the following Python program code: Str2 = list (Cam@123*) for i in range (len (Str2)-1):

Q. Write the output of the following Python program code: Str2 = list ("Ca…

Write the output of the following: import statistics L = [20, 40, 50, 60, 20, 30, 40, 70] Count = L.count (40) print (count)

Q. Write the output of the following: import statistics L = [20, 40, 50, 60, 20…

Find the output of the following: L1 = [1, 2, 3] L2 = [4, 5, 6] print (L1+ list (45))

Q. Find the output of the following: L1 = [1, 2, 3] L2 = [4, 5, 6] print (L1+ l…

Suppose L = [10, [few, facts, fun], 3, Good] Consider the above list and answer the following: (i) L [3:] (ii) L [:: 2]

Q. Suppose L = [10, ["few", "facts", "fun"], 3, &…

From a balance sheet of a company and create lists for assets, liabilities and equity.

Q. From a balance sheet of a company (choose any from your Accountancy book) an…

What is the difference between sort() and sorted()?

Q. What is the difference between sort() and sorted()? Answer = The sort() meth…

Do functions max(), min(), sum() work with all types of lists.

Q. Do functions max(), min(), sum() work with all types of lists. Answer = No, …

What is the difference between appending a list and extending a list?

Q. What is the difference between appending a list and extending a list? Answer…

Load More That is All