Hello.
Here is an exercise for you to practice on strings and the first question is request a string so in
the first question you need to write a program that accepts a string from the user.
And then reverses the string and returns the new String.
Say for example the user has a entered the string hello.
You need to devise these characters in the string and display the new string so the new string should
be like this.
Let's go to the second exercise.
Count the words and characters in a given string.
So you need to write a python program that calculates the number of words and the number of characters
present in a given string.
Say for example you have assigned the string.
How are you to a string.
You need to count the number of words and characters in this particular string which also include spaces
going to the next question.
It is done part of an input string so you need to write a program that accepts a string from the user.
The length of the string should be an odd numbered and also greater than 7 and you need to write it
on a string made of the middle three characters of the given string.
So for example if your input string is this happiness your output string should be the middle three
characters of your input string.
Next question.
Edit done a string with maximum length.
So you need to write a program that accepts draw strings as input from the user.
And then you need to put in the string with the maximum land in the output in case the two strings have
the same length.
Then the program should print board the strings.
Line by line or one after the other in the output.
So go ahead and practice these exercises.
Good luck.