Omitting Indices


#1

Oops, try again. Make sure to omit the appropriate indices in your list slice. Check the Hint if you need help!

print my_list[0:11:2]
print my_list[2:9:2]

still i'm not getting why this error is coming ?


#2

Hi @bitplayer43068 ,

You only need to write one statement for this exercise, but you have written two. As you write the statement, consider what values you can omit from the square brackets to rely on default values of the indexes to produce the desired result.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.