Challenge 1
Wait for the asynchronous setup step, then return the ready label from __aenter__().
import asyncio
class Resource:
async def __aenter__(self):
async def __aexit__(self, exc_type, exc_value, traceback):
return False
async def main():
async with Resource() as value:
print(value)
asyncio.run(main())
Press Ctrl⌘Enter to check your answer