'await' outside function error

I've encountered a very frustrating delay. I'm using the python environment and I'm having an error saying "SyntaxError: 'await' outside function". Does anyone know how to fix this?

You are viewing a single comment. View All

When you make the function in which the await is in, define it as async def functionname() instead of def functionname()