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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!