DEV Community

Discussion on: Python Fundamentals ☕️

Collapse
 
eriwst_44 profile image
eriwst

Have i found an bug in the lists example?

people = ["John", "James", "Max"]

# Display ["John", "Max"].
print(people[0:1])

Enter fullscreen mode Exit fullscreen mode

will print:

['John']

Collapse
 
killianfrappartdev profile image
Killian Frappart

You are completely right, I made a mistake here!

This will be fixed asap, thank you very much 😇