* mark | Sololearn: Learn to code for FREE!

+3

* mark

What’s the meaning of * in python thanks

7/23/2021 12:28:59 PM

de Jefferson

3 Answers

New Answer

+12

multiplication

+3

https://www.tutorialspoint.com/variable-length-arguments-in-python Have a look at it👆

+3

Haha - * is used for 3 things * -> multiply example - >>> 2 * 3 6 * -> taking many arguments example - >>> def sum(*args): ... sum = 0 ... for i in args: ... sum += 1 ... return sum >>> sum(2,3,4) 9 * -> Unpacking Example, >>> a = (1,2,3) >>> *a 1 2 3 >>> print(*a, sep='/') 1/2/3