Complex sentence: When a list's dimension is set lower than it previously was, elements at the end are cut off, and when it is set higher, extra elements at the end are all filled with zeros.
Split into simpler sentences: When a list's dimension is set lower than it previously was, elements at the end are cut off. When set higher, extra elements at the end are filled with zeros.