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
Get step-by-step solutions from verified subject matter experts
