Oct-21-2021, 09:54 AM
I'm guessing line = line[-1] means that Python will delete the first character starting from the end?
Meaning that to delete the ones in the middle and left, I'd have to do something like line = line[-1,-20,40] assuming the zeros there are on the 20th and 40th spot.
Is this correct?
Meaning that to delete the ones in the middle and left, I'd have to do something like line = line[-1,-20,40] assuming the zeros there are on the 20th and 40th spot.
Is this correct?