List slicing


#1

https://www.codecademy.com/courses/learn-python/lessons/advanced-topics-in-python/exercises/list-slicing-syntax?action=lesson_resume&link_content_target=interstitial_undefined

In list slicing the syntax is
list_name[start(inclusive) : end(exclusive) : step_value]

But in codeacademy,it is printing even the end exclusive value.So is the defintion of slicing incorrect or is codeacademy showing incorrect output?!

Capture|690x360


#2

Probably neither, I think your observation is wrong somehow


#3

Yes, my observation was wrong,sorry for the trouble


#4

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