Python Foundation

+91-7982108418            
                        PYTHON LIST IMPORTANT QUESTIONS
  1. Write a Python program to sum all the items in a List.
  1. Write a Python program to multiplies all the items in a List.
  1. Write a Python program to get the largest number from a List.
  1. Write a Python program to get the smallest number from a List.
  1. Write a Python program to count the number of strings where the string length is 2 or more and the first and last character are same from a given list of strings.
  1. Write a Python program to get a list, sorted in increasing order by the last element in each tuple from a given list of non-empty tuples.
  1. Write a Python program to remove duplicates from a List.
  1. Write a Python program to check a list is empty or not
  1. Write a Python program to clone or copy a List.
  1. Write a Python program to find the list of words that are longer than n from a given list of words.
  1. Write a Python function that takes two lists and returns True if they have at least one common member.
  1. Write a Python program to print a specified list after removing the 0th, 4th and 5th elements.
  1. Write a Python program to generate a 3*4*6 3D array whose each element is.
  1. Write a Python program to print the numbers of a specified list after removing even numbers from it.
  1. Write a Python program to shuffle and print a specified List.
  1. Write a Python program to generate and print a list of first and last 5 elements where the values are square of numbers between 1 and 30 (both included).
  1. Write a Python program to generate and print a list except for the first 5 elements, where the values are square of numbers between 1 and 30 (both included).
  1. Write a Python program to generate all permutations of a list in python.
  1. Write a Python program to get the difference between the two List.
  1. Write a Python program access the index of a List.
  1. Write a Python program to convert a list of characters into a string.
  1. Write a Python program to find the index of an item in a specified List.
  1. Write a Python program to flatten a shallow List.
  1. Write a Python program to append a list to the second List.
  1. Write a Python program to select an item randomly from a List.
  1. Write a python program to check whether two lists are circularly identical.
  1. Write a Python program to find the second smallest number in a List.
  1. Write a Python program to find the second largest number in a List.
  1. Write a Python program to get unique values from a List.
  1. Write a Python program to get the frequency of the elements in a List.
  1. Write a Python program to count the number of elements in a list within a specified range.
  1. Write a Python program to check whether a list contains a sublist.
  1. Write a Python program to generate all sublists of a List.
  1. Write a Python program using Sieve of Eratosthenes method for computing primes upto a specified number.
  1. Write a Python program to create a list by concatenating a given list which range goes from 1 to n.
  1. Write a Python program to get variable unique identification number or string.
  1. Write a Python program to find common items from two lists.
  1. Write a Python program to change the position of every n-th value with the (n+1)th in a List.
  1. Write a Python program to convert a list of multiple integers into a single integer.
  1. Write a Python program to split a list based on first character of word.
  1. Write a Python program to create multiple List.
  1. Write a Python program to find missing and additional values in two List.
  1. Write a Python program to split a list into different variables.
  1. Write a Python program to generate groups of five consecutive numbers in a List.
  1. Write a Python program to convert a pair of values into a sorted unique array.
  1. Write a Python program to select the odd items of a List.
  1. Write a Python program to insert an element before each element of a List.
  1. Write a Python program to print a nested lists (each list on a new line) using the print() function.
  1. Write a Python program to convert list to list of Dictionaries.
  1. Write a Python program to sort a list of nested Dictionaries.
  1. Write a Python program to split a list every Nth elements.
  1. Write a Python program to compute the similarity between two List.
  1. Write a Python program to create a list with infinite elements.
  1. Write a Python program to concatenate elements of a List.
  1. Write a Python program to remove key values pairs from a list of Dictionaries.
  1. Write a Python program to convert a string to a List.
  1. Write a Python program to check whether all items of a list is equal to a given string.
  1. Write a Python program to replace the last element in a list with another List.
  1. Write a Python program to check whether the n-th element exists in a given List.
  1. Write a Python program to find a tuple, the smallest second index value from a list of tuples
  1. Write a Python program to create a list of empty dictionaries.
  1. Write a Python program to print a list of space-separated elements
  1. Write a Python program to insert a given string at the beginning of all items in a List.
  1. Write a Python program to iterate over two lists simultaneously.
  1. Write a Python program to access dictionary keys element by index.
  1. Write a Python program to find the list in a list of lists whose sum of elements is the highest.
  1. Write a Python program to find all the values in a list are greater than a specified number.
  1. Write a Python program to extend a list without append.
  1. Write a Python program to remove duplicates from a list of List.
  1. Write a Python program to get the depth of a dictionaries.
  1. Write a Python program to check whether all dictionaries in a list are empty or not.

 

Powered by BetterDocs

Contact Us
close slider