Question from the Python test

What is the output of the following code? ``` import asyncio async def read_data(): with open('data.txt', 'r') as f: data = f.read() return data async def main(): data = await read_data() print(data) if __name__ == '__main__': asyncio.run(main()) ```

Hard

If I encounter a python3 code that looks like this:

async def read_data(db):
    data = await db.fetch('SELECT COUNT(*) FROM users')
    ...
Author: Antoine BrennerStatus: PublishedQuestion passed 1991 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!