Question: Pyhthon 3 Assignment Given the initial statements: import string str1 = happy str2 = Halloween Show the result of evaluating the following string expressions. a.
Pyhthon 3 Assignment
Given the initial statements:
import string
str1 = happy
str2 = Halloween
Show the result of evaluating the following string expressions.
a. str2.lower()
b. str1 * 3 + str2 + 'y'
c. str2[1:4]
d. str1 + ' t' + str2[5:]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
