Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python ------- Question 9: Practice with the basic string methods: Isalpha(), islower(), isupper(), isdigit(), startswith(), endswith(), lower(), upper(), title(), Istrip(), rstrip(), strip(), ljust(), rjust(), center

python -------
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions