0% found this document useful (0 votes)
2 views1 page

String Manipulation Programs in Python

The document outlines three programming tasks involving string manipulation. The first task requires converting a string to uppercase and identifying pairs of vowels along with their count. The second task involves calculating the total number of characters (excluding spaces), vowels, and words in a given string, while the third task focuses on capitalizing the first letter of each word in a lowercase string.

Uploaded by

deypriyanshu46
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

String Manipulation Programs in Python

The document outlines three programming tasks involving string manipulation. The first task requires converting a string to uppercase and identifying pairs of vowels along with their count. The second task involves calculating the total number of characters (excluding spaces), vowels, and words in a given string, while the third task focuses on capitalizing the first letter of each word in a lowercase string.

Uploaded by

deypriyanshu46
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

1.

Write a program to input a string and convert it into uppercase and print the pair of
vowels and number of pair of vowels occurring in the string.
Example:
Input:
"BEAUTIFUL BEAUTIES "
Output :
Pair of vowels: EA, AU, EA, AU, IE
No. of pair of vowels: 5

2. Write a program to input any string to calculate the total number of characters leaving
blank spaces, total number of vowels(consider both cases) present in the string and also print the
total number of words.
Example:
If sample Input: Human like Apples
Output: Total characters leaving blank spaces :- 15
Total vowels :- 6
Total number of words :- 3

3. Write a program to accept a string in lower case. Convert the first character of each word of
the string to uppercase and display the new string.
i Sample input: india got independence in nineteen forty seven
ii Sample output: India Got Independence In Nineteen Forty Seven

You might also like