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

Show Python list multiplication #33

Open
alexpearce opened this issue Oct 30, 2017 · 0 comments
Open

Show Python list multiplication #33

alexpearce opened this issue Oct 30, 2017 · 0 comments
Labels

Comments

@alexpearce
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants