DEV Community

Discussion on: Python tips 101

Collapse
 
vdedodev profile image
Vincent Dedo

list[::3] # [1, 3, 5, 7, 9]

That should be list[::2] btw :)

Collapse
 
rattanakchea profile image
Rattanak Chea

@V Dedo, nice catch. I updated the code. Thanks.