Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Show Python list multiplication #33

Open
@alexpearce

Description

We don't mention that lists support the * operator.

>>> [2, 3, 1]*5
[2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]
>>>

This is good to mention because numpy has a more intuitive/useful implemention of the * operators for arrays.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions