Functions
A function is a reusable block of code defined with def.
def greet(name):\n print("Hello", name)\n\ngreet("Rahul")Return Statementdef add(a, b):\n return a + b\nresult = add(5, 3) # 8ArgumentsTypeExamplePositionalfunc(1, 2)Keywordfunc(a=1, b=2)Defaultdef func(x=10)*argsVariable args**kwargsVariable keyword args