title: How to use async/await in python 3.5+
body: <p>I was trying to explain an example of async programming in python but I failed.
  Here is my code.</p>
  
  <pre><code>import asyncio
  import time
  
  async def asyncfoo(t):
      time.sleep(t)
      print("asyncFoo")
  
  
  loop = asyncio.get_event_loop()
  loop.run_until_complete(asyncfoo(10)) # I think Here is the problem
  print("Foo")
  loop.close()
  </code></pre>
  
  <p>My expectation is that I would see:</p>
  
  <pre><code>Foo
  asyncFoo
  </code></pre>
  
  <p>With a wait of 10s before <code>asyncFoo</code> was displayed.</p>
  
  <p>But instead I got nothing for 10s, and then they both displayed.</p>
  
  <p>What am I doing wrong, and how can I explain it?</p>