3000 explained code solutions for 75 technologies


pythonHow to yield nothing


def yield_nothing():
  return
  yieldctrl + c
yield_nothing()

name of the generator function to yield nothing

return

returns nothing

yield

yields after return (so never actually yields anything)