peterwittek / qml-rg

Quantum Machine Learning Reading Group @ ICFO
GNU General Public License v3.0
132 stars 63 forks source link

Fix explanation of negative indices #11

Closed dsuess closed 7 years ago

dsuess commented 7 years ago

Probably meant that l[:-1] gives you every item up to (and including) the second last item. This agrees with the fact that the upper index is not inclusive and -1 refers to the last item.