How to delete everything after a certain character in a string?,s = s[:s.index('.zip') + 4]