+ 1
is * for multiplying numbers in python?
3 Respostas
+ 6
In Python, * is also used to transform a list into just the list values. When used in this way, * is called "splat". See my code for example:
https://code.sololearn.com/cxc841y4zrSQ/?ref=app
+ 3
Not only, though.
It can also be used on a list like so:
[a] * 10 -> [a,a,a,a,a,a,a,a,a,a]
0
Yes, it is