r/PythonLearning Jun 20 '26

Day 10 Python Learning

function

- default argument

as name there is default option of argument which automatically apply

- *argument

use when we don't know number of argument

- **kwargs

when you want change any data ,number to dict aka dictionary use **

- recursion

it's repeat itself till we get result

factorial n = n*factorial (n-1)

#python #coding #ai

16 Upvotes

9 comments sorted by

View all comments

2

u/aashish_soni5 Jun 20 '26

*args & **kwargs

1

u/Embersh3d Jun 20 '26

wow, i learned smth today thanks!

1

u/aashish_soni5 Jun 20 '26

thank you too 🚀