What does [:-1] mean/do in python?
<p>Working on a python assignment and was curious as to what [:-1] means in the context of the following code: <code>instructions = f.readline()[:-1]</code></p>

<p>Have searched on here on S.O. and on Google but to no avail. Would love an explanation!</p>
