================== original code
import asyncio
async def main():
print('Hello ...')
await asyncio.sleep(1)
print('... World!')
/*Python 3.7+*/
asyncio.run(main())
================== wrong message
Traceback (most recent call last):
File "e:\Code\Python\Web\Web\awesome-python3-webapp\www\static\tempCodeRunnerFile.py", line 1, in
import asyncio
File "C:\Python3\Lib\site-packages\asyncio__init__.py", line 21, in
from .base_events import *
File "C:\Python3\Lib\site-packages\asyncio\base_events.py", line 296
future = tasks.async(future, loop=self)
^
SyntaxError: invalid syntax