What does the star mark before list mean?

The code snippet is given below. But I don’t understand what the start mark (*) mean. Could assisstance be provided to explain this?

my_model = nn.Sequential(*list(pretrained_model.modules())[:-1])

Kind regards.

It is used to unpack containers. In your case it would be equal to as if you pass each list element separately to nn.Sequential. Have a look at pep448 for more information.

I got it. Much appreciated for your help.