from typing import Sequence


def strip_zeros(L: Sequence[float]) -> Sequence[float]:
    """Strip all zeros from the end of the list."""
    if len(L) == 0:
        return L

    i = len(L) - 1
    while i >= 0 and L[i] == 0:
        i -= 1

    return L[: i + 1]