First, can anyone provide a real-world use case when packing of arguments would be better than - let's say - passing a list?
Second, when the arguments are actually packed, in what data structure are the stored. Because when printed, it looks like tuple because:
def printMe(*args): print(args) printMe(1,2,3,4,5) #Output: (1,2,3,4,5)
output looks very tuple-like but we can actually modify the arguments inside the function (tuples are supposed to be immutatble).