1. functions

def name_of_function():
  '''
  python function name should be snake chasing
  '''

Arbitary arguments *args **kwargs

def func(*args):
  '''
  will get a tuple
  '''
  print(args)
def func(**kwargs):
  '''
  will get a dictionary
  '''
  if 'fruit' in kwargs:
    print(f"choice is {kwargs['fruit']}")
    
func(fruit='apple',veggie='lettuce')

2. yield

What does the “yield” keyword do?

the-python-yield-keyword-explained