Question · Python course · Module 6: Async and FastAPI

async def

How do you define an asynchronous function in Python?

Answer options

  • def function_name() async:
  • def async function_name():
  • async def function_name():
  • asyncdef function_name():

You can check the correct answer by solving this task in the CodeWorlds game.