Skip to content

Questions

List and String Operations

  1. How to count the number of upper and lowercase letters in a string

  2. Write a program to find the lists that consist of at least one common element.

  3. Python program to print the duplicate elements of an array

  4. Python program to print the largest element in an array

  5. Python program to print the smallest element in an array

  6. Python program to print the number of elements present in an array

Additional Exercises

  1. Write a program to reverse a list without using reverse()

  2. Check if a string input by the user is a palindrome or not

  3. Find the count of uppercase and lowercase letters in a string input by the user

  4. Remove spaces from a string input by the user

  5. Find the largest element in the given array

  6. Input a string from the user and find the number of integer alphabets in the string