Question: python my_string = happy birthday! print (my_string[6:11] is + my_string[6:11) print (my_string[-2:] is + my_string[-2:]) What is printed by both the print statements?

python

my_string = "happy birthday!"

print ("my_string[6:11] is " + my_string[6:11) print ("my_string[-2:] is " + my_string[-2:])

What is printed by both the print statements?

a

birthday

day

b

birth

ay

c

happy

birth

d

happy

birthday

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!