Question: vthon Worksheet-Strings Name Given the string str We Love Python! complete the following 1. Write an expression that prints the first character 2. Write an


vthon Worksheet-Strings Name Given the string str "We Love Python!" complete the following 1. Write an expression that prints the first character 2. Write an expression that includes the len ) to print the last character 3. Write an expression that removes Python! from the string 4. Write an expression that replaces all the 'o's with 'e's Given the string str-"Spring break is almost here!" 5. What is returned by strl::2]? Given the string str "The class average is 96.7895." 6. Write a programming statement that formats the average to two decimal places Given the string str "No more snow please!" 7. Write an expression that will reverse the string 8. Write an expression that will print the string in all capital letters 9. Write a function definition that accept s two integers and multiplies them together: 10, write a function call for the function created in Question #9 #Extra points: #write a substring (5 characters long) for strA-"No more snow please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
