This document provides examples of Python programs to manipulate strings. It includes programs to remove characters at odd indices, count word frequencies, convert case of input, and sort distinct words from comma-separated input.
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
2. Write a Python program to remove characters that have odd index v.pdf
1. 2. Write a Python program to remove characters that have odd index values in a given string.
3. Write a Python program to count the occurrences of each word in a given sentence.
4 Write a Python script that takes input from the user and displays that input back in upper and
lower cases.
5. Write a Python program that accepts a comma-separated sequence of words as input and
prints the distinct words in sorted form (alphanumerically).
Sample Words : red, white, black, red, green, black
Expected Result : black, green, red, white,red