function
`#67 - Lambda Functions
code:python
addr = lambda a,b = a+b
code:python
def custum_exponent(power):
return lambda base : base ** power
square = custom_exponent(2) # function
cube = custom_exponent(3) # function
square(2) # 4
cube(2) # 8
`#79 - Function Documentation
`#80 - Type Hinting
code:python
def degF(degC: float) -> float:
return degc*9/5+32
`#192 - Position Only Arguments
Did you know you can create position and keyword only arguments to your Python functions? Learn how and why!
code:python
def myfunc(x,/,a,b,*,c):
return a*x**2+b*x+c
code:python
def function():
pass
def function():
...