If you don't have the latest asyncio version, change `ensure_future` to `async`.<p>> asyncio.async(display_date(1, loop))<p>See this <a href="https://github.com/python/asyncio/pull/242" rel="nofollow">https://github.com/python/asyncio/pull/242</a><p>The author is using the latest release of asyncio, will be good to mention that.