Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- In [1]: notas = [1,2,3,4,5]
- In [2]: len(notas)
- Out[2]: 5
- In [3]: notas[0]
- Out[3]: 1
- In [4]: notas[1]
- Out[4]: 2
- In [5]: notas[2]
- Out[5]: 3
- In [6]: notas[3]
- Out[6]: 4
- In [7]: notas[4]
- Out[7]: 5
- In [8]: notas[5]
- ---------------------------------------------------------------------------
- IndexError Traceback (most recent call last)
- /home/mauro/projects/panera/mwapp/<ipython-input-8-fd66b449eadb> in <module>()
- ----> 1 notas[5]
- IndexError: list index out of range
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement