Questions on Python Strings
1. Palindrome Checker: Write a program to check if a string is a
palindrome (reads the same forward and backward).
2. Vowel Counter: Create a function that counts the number of
vowels in a given string.
3. Case Swapper: Write a program that takes a string and converts
all uppercase letters to lowercase and vice versa.
4. Word Reverser: Given a sentence, reverse the order of the words.
5. Character Frequency: Count how many times each character
appears in a string.
Solutions
Questions on Python Lists
1. Sum and Average: Write a program to find the sum and average
of all numbers in a list.
2. Remove Duplicates: Given a list with repeating elements, create a
new list with only unique values.
3. Find Max/Min: Without using built-in max() or min(), find the
largest and smallest numbers in a list.
4. List Filtering: Given a list of integers, create a new list containing
only the even numbers.
5. Second Largest: Find the second largest number in a list.
gdsh
Python Dictionary List Operations