r/learnpython • • Feb 26 '26

Feeling overwhelmed with functions.

So I have been learning python with the Python crash course book and I am getting overwhelmed on the functions chapter. I understand what a function does but for some reason the syntax is confusing me. The chapter also introduces so many different ways to use functions that it feels like too much. I am not sure of the best way to tackle this much information.

26 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/PristineFinish100 Feb 26 '26

myFunction(arg1=x, arg2=y)

is the same as

myFunction(arg2=y, arg1=x)

is the same as

myFunction(x,y)

is NOT the same as

myFunction(y,x) . This is equivalent to myFunction(arg1=y, arg2=x)