31.Programming Assignment 7 (using strings)
Now you can try the following program based on strings. 1. Read a string of alphabets. Find the length. Number of vowels and consonants in the given sting. 2.Check whether the given string is palindrome or not. (use slicing..refer example...University question) 3.Check whether the given string is palindrome or not. (use for loop to reverse the string Hint: take the character from last position to the beginning and concatenate to a new string) 4.Check whether the given string is palindrome or not with out reversing the string(use a loop and check character by character..refer example...university question) 5. Count the number of occurrences of a character in a given string.( do not use count()) 6. Read a string and split the string at positions of the letter ‘s’ ( use split()) 7. Print the positions of occurrences of a character(index) in a given string. 8. Program to remove all occurrence of a substring ( or a character) from a string.(refer example program ) 9. Program to replace all