Question: Q7 Consider the following code. my_list = [1, 2, 3, 4, 5] print(my_list[2:4]) What will be printe? O [2, 3] O [2, 3, 4] O
Q7
![Q7 Consider the following code. my_list = [1, 2, 3, 4, 5]](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670e4bbd2385f_140670e4bbceb388.jpg)
Consider the following code. my_list = [1, 2, 3, 4, 5] print(my_list[2:4]) What will be printe? O [2, 3] O [2, 3, 4] O [3, 4] O [3, 4, 5]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
