From 32e6a0d9c94fda502b81c13b5c986e1685c5502d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 11 Feb 2020 04:11:58 +0100 Subject: [PATCH] Coroutines --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5f83314..3737e03 100644 --- a/README.md +++ b/README.md @@ -2245,7 +2245,7 @@ Coroutines * **`'asyncio.run()'` is the main entry point for asynchronous programs.** * **Fucntions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.** -#### Starts a terminal game where you control an asterisk that must avoid numbers: +#### Runs a terminal game where you control an asterisk that must avoid numbers: ```python import asyncio, collections, curses, enum, random diff --git a/index.html b/index.html index 19f31c9..70bfd8c 100644 --- a/index.html +++ b/index.html @@ -1946,7 +1946,7 @@ ValueError: malformed node or string
  • Coroutine definition starts with 'async' and its call with 'await'.
  • 'asyncio.run(<coroutine>)' is the main entry point for asynchronous programs.
  • Fucntions wait(), gather() and as_completed() can be used when multiple coroutines need to be started at the same time.
  • -

    Starts a terminal game where you control an asterisk that must avoid numbers:

    import asyncio, collections, curses, enum, random
    +

    Runs a terminal game where you control an asterisk that must avoid numbers:

    import asyncio, collections, curses, enum, random
     
     P = collections.namedtuple('P', 'x y')         # Position
     D = enum.Enum('D', 'n e s w')                  # Direction