Question: E21. Visit the official documentation for Python string methods and find a method that will capitalize every word in a string. (Hint: it's not capitalize!

E21. Visit the official documentation for Python string methods and find a method that will capitalize every word in a string. (Hint: it's not capitalize! Use it to display the string below in "title case". Do not simply modify the contents of the string below. [] country - 'united states of america' E22. Write an expression to test whether the word 'the' is present in the string named country. [] E23. Use the replace method to replace all occurrences of the lowercase letter e in country, but do not change the original string stored in country. [] E24. Use the count method to count and display the number of lowercase letter e characters in country. []
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
