Python for loop

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:

Python Basic Programming Tutorial

Python Introduction     Getting started in Python Programming      Python propgramming fundamentals     Python Operators    Python If Condition     Python for loop    Python range construct      Python While loop    break and continue statements     Different looping techniques     Python List     Python String     Python Functions    Python Inbuilt Functions     Python Recursion     Using Python Library     Python Tuples     Python Dictionary     Python Sets     Python Strings     Python Exception Handling     Python Data File Handling

Visitor Counter

0183281