Why is this basic python program not working?

This line: subbed = line[-3:] will give you the last 3 chars of line which can never be ‘ok’ which is 2 chars.

Leave a Comment