# What does the star mark before list mean?

**URL:** <https://discuss.pytorch.org/t/what-does-the-star-mark-before-list-mean/27687>\
**Category:** vision\
**Created:** [October 21, 2018, 12:55am UTC](https://discuss.pytorch.org/t/what-does-the-star-mark-before-list-mean/27687 "2018-10-21T00:55:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haimin\_Hunter\_Zhang](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/haimin_hunter_zhang/32/14578_2.png) [@Haimin\_Hunter\_Zhang](https://discuss.pytorch.org/u/Haimin_Hunter_Zhang)\
**Post date:** [October 21, 2018, 12:55am UTC](https://discuss.pytorch.org/t/what-does-the-star-mark-before-list-mean/27687/1 "2018-10-21T00:55:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ptrblck](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/ptrblck/32/1823_2.png) [@ptrblck](https://discuss.pytorch.org/u/ptrblck)\
**Post date:** [October 21, 2018, 1:05am UTC](https://discuss.pytorch.org/t/what-does-the-star-mark-before-list-mean/27687/2 "2018-10-21T01:05:19Z")

</div>

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](https://www.python.org/dev/peps/pep-0448/) for more information.

---

<div class="post-metadata">

**Author:** ![Haimin\_Hunter\_Zhang](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/haimin_hunter_zhang/32/14578_2.png) [@Haimin\_Hunter\_Zhang](https://discuss.pytorch.org/u/Haimin_Hunter_Zhang)\
**Post date:** [October 21, 2018, 1:43am UTC](https://discuss.pytorch.org/t/what-does-the-star-mark-before-list-mean/27687/3 "2018-10-21T01:43:11Z")

</div>

I got it. Much appreciated for your help.
