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

String Manipulation Techniques in Python

The document outlines a series of programming tasks related to string manipulation in Python. It includes tasks such as counting characters and words, converting case, checking for vowels and punctuation, counting word occurrences, reversing strings, removing vowels, checking for palindromes, finding character indices, and replacing words. These tasks are designed to enhance understanding of string operations in Python.

Uploaded by

kishoreproxy
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)
4 views1 page

String Manipulation Techniques in Python

The document outlines a series of programming tasks related to string manipulation in Python. It includes tasks such as counting characters and words, converting case, checking for vowels and punctuation, counting word occurrences, reversing strings, removing vowels, checking for palindromes, finding character indices, and replacing words. These tasks are designed to enhance understanding of string operations in Python.

Uploaded by

kishoreproxy
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.

Take a string input from the user and print the number of characters
in the string.
2. Take a sentence from the user and print how many words it
contains.
3. Convert the following string "python is Fun" into:
a. Uppercase
b. Lowercase
c. Title case
4. Take a string from the user and check:
i. Does it start with a vowel?
ii. Does it end with a period (.)?

5. Take a string and a word as input. Count how many times the word
appears in the string.
6. Take a string input and print it in reverse order.
7. Take a string and print it without vowels (a, e, i, o, u).
8. Take a string and check if it is a palindrome. Ignore spaces,
punctuation, and case.
9. Take a string and a character as input. Print the index of the first
occurrence of that character.
10. Take a string and replace all occurrences of the word "Python"
with "Java". Print the new string.

You might also like