List Activities

1. Write a Python program to sum all the items in a list.

2. Write a Python program to get the largest number from a list. Go to the editor

3. 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. Go to the editor Sample List : ['abc', 'xyz', 'aba', '1221'] Expected Result : 2

4. Write a Python function that takes two lists and returns True if they have at least one common member.

5. Write a Python program to print the numbers of a specified list after removing even numbers from it.

6. Write a Python program to shuffle and print a specified list.

7. Write a Python program to count the number of elements in a list within a specified range.

Topic revision: r1 - 2018-10-21 - JimSkon
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback