Question:26
Write a python script to take input for a string , check and print the following:
Total length of the string
Total alphabets
Total vowels
Total consonants
Sol:
code
Output:
Question:27
Write a python script to take input for a string, display the string in such a way that all lower case alphabets are displayed as upper case and rest are displayed as it is?
Sol:
code
Output:
Question:28
Write a python script to take input for a string, display the string in such a way that all upper case alphabets are displayed as lower case and rest are displayed as it is?
Sol:
code
Output:
Question:29
Write a python script to take input for a string, display the string in toggle case i.e. all lower case alphabets are displayed as upper case and upper case are displayed as lower case and rest are displayed as it is?
Sol:
code
Output: