+ 1
How many values will be extracted from the list??
Question : planets = ['Mercury', 'Venus', 'Earth', 'Mars', 'Jupiter'] print(planets[2:4]) Advanced thanks 🙂🥲
8 ответов
+ 6
Don't wait for people to do the task for you.
RUN THE CODE BY YOURSELF AND SEE THE OUTPUT.
+ 3
Tbh I often had problems myself with this kind of question. But it is easy: calculate the difference. 4-2=2
+ 3
Read the previous replies. Don't guess. Run the code or learn about slicing.
+ 2
Pat it'd be 2
+ 1
Lisa thanks 🙂😄
+ 1
Thanks for the correction, Rouza
0
I don't have knowledge in Python but I will try to guess as it's somehow similar with R. My answer is 3 values will be extracted from the list. Please correct me if I'm wrong.