Working on a python assignment and was curious as to what [:-1] means in the context of the following code: instructions = f.readline()[:-1]instructions = f.readline()[:-1]
Have searched on here on S.O. and on Google but to no avail. Would love an explanation!