Asterisk (Star) Operator ใช้ใน Python กับความหมายมากกว่าหนึ่งอย่าง
สำหรับ Numeric data types * ใช้เป็น Multiplication operator
>> a = 10; b = 20
>>> a * b
200
>>> a = 1.5; b = 2.5
>>> a * b
3.75
>>> a = 2+3j; b = 3+2j
>>> a * b
13j
สำหรับ Sequences เช่น String, List และ Tuple * เป็น Repetition operator
>> s = "Hello"
>>> s * 3
'HelloHelloHello'
>>> L1 = [1,2,3]
>>> L1 * 3
[1, 2, 3, 1, 2, 3, 1, 2, 3]
>>> T1 = (1,2,3)
>>> T1 * 3
(1, 2, 3, 1, 2, 3, 1, 2, 3)
Single asterisk ใน Function Declaration อนุญาตให้ส่ง Variable number of arguments จาก Calling Environment ภายในฟังก์ชันมันทำงานเป็น Tuple
>> def function(*arg):
... print(type(arg))
... for i in arg:
... print(i)
>>> function(1,2,3)
1
2
3