Question:7
Python script to take input for a string:
a. display it
b. count and print length of the string
Sol:
Question:8
Python script to take input for a string:
a. display it
b. count total length of string
c. count total alphabets
d. count total upper case alphabets
e. count total lower case alphabets
f. count total digits
g. count total spaces
h. count total special characters
Sol:
Question:9
“searching a character”
Python script to take input for a string further take input for a character to search. Check and print whether the character is present in the string or not?
Sol: