Strings

Create a variable: address by assigning the string ‘Durham, NC 27708’ to it.

Problem 1: Write an expression that extracts the seventh character out of address.

Problem 2: Write an expression that extracts the length of address.

Problem 3: Write an expression that extracts the city name out of address using slicing.

Problem 4: Write an expression that extracts the state initials out of address using slicing.

Problem 5: Write an expression that extracts the zip code out of address using slicing.