Make a python program that demonstrates string functions.
Ask the user for a sentence and store it as a string of text in a python variable.
Use String functions you learned in chapter 8 to tell the user if a word they give is in the string variable, then replace a word the user gives you in the string variable with another word (ask the user a word they want to be a different word and have the string function make the change for you so the sentence is different), and finally slice the string variable to have just the first 5 characters of text and use this slice to make a new string and print it for the user.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here