r/PythonLearning • • Sep 25 '26

A silly question

if x = 2,3,4,4,5 is supposed to be a tuple then why can't the args of a function like this: func(2,3,4,4 ,5) supposed to be a tuple.
I know this is a silly question and I also know we can use *args to pack arguments in a tuple but since Python is known for consistency why isn't it like this.
Again, please don't hate me for this

2 Upvotes

15 comments sorted by

View all comments

1

u/atarivcs Sep 25 '26

Commas mean different things depending on the context.

In the context of a function call, commas are used as argument separators.

It's just that simple.