Question: python ------- Question 9: Practice with the basic string methods: Isalpha(), islower(), isupper(), isdigit(), startswith(), endswith(), lower(), upper(), title(), Istrip(), rstrip(), strip(), ljust(), rjust(), center
Question 9: Practice with the basic string methods: Isalpha(), islower(), isupper(), isdigit(), startswith(), endswith(), lower(), upper(), title(), Istrip(), rstrip(), strip(), ljust(), rjust(), center Get the ordinal value of '%'. Get the character value of 94. Slice string "delicious to get first, last, second, second to last characters. Get substrings beginning to position 5, position 7 to end, positions 3-5. What does print[-1:] do? What does print[:-1] do? Print a line of 36 *^?. Print "Hello World! 5 times. Use to create a multi-line string and print its length. Phone number = '1-800-555-1212' Use .find and replace to change it to 1 (800) 555.1212 Quote="These are the times that try men's souls. Print each word on its own line. Print the last 4 words. Date = "02/14/2019" separate it into variables month, day, year and print as year/month/day
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
