<jupyter_start><jupyter_text>asyncio> To write **concurrent**, **asynchronous**, and **cooperative** code in a sequential style. Concurrency vs Parallelism Asynchronous vs Synchronous Cooperative vs preemptive> asyncio is used as a foundation for multiple Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc.  Coroutine> A function which can pause and resume its execution. How to define a coroutine?```pythonasync def main():    ...    ...```<jupyter_code>async def main():
    print("Hello")
main()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09615384615384616, 'fraction_numerical': 0.0, 'mean_word_length': 5.944444444444445, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '84777', 'license': 'CC0-1.0', 'n_tokens_mistral': 167, 'n_tokens_neox': 160, 'n_words': 67, 'path': 'asyncio-tut.ipynb', 'repo_name': 'mcvenkat/Python-Programs', 'size': '624'}