title: Making asynchronous functions in Python
body: <p>I have 4 functions that I wrote in python. I want to make first 3 functions asynchronous.
  So it should look like this:</p>
  <pre><code>x = 3.13
  def one(x):
     return x**x
  
  def two(x):
     return x*x*12-314
  
  def three(x):
     return x+x+352+x**x
  
  
  def final(x):
  
     one = one(x)
     two = two(x)
     three = three(x)
  
     return one, two, three
  </code></pre>
  <p>This is what I did:</p>
  <pre><code>async def one(x):
     return x**x
  
  async def two(x):
     return x*x*12-314
  
  async def three(x):
     return x+x+352+x**x
  
  
  def final(x):
  
     loop = asyncio.get_event_loop()
  
     one = loop.create_task(one(x))
     two = loop.create_task(two(x))
     three = loop.create_task(three(x))
  
  
     #loop.run_until_complete('what should be here')
     #loop.close()
  
     return one, two, three
  </code></pre>
  <p>But I get this error (if lines above are not commented):</p>
  <pre><code>RecursionError: maximum recursion depth exceeded
  </code></pre>
  <p>I do not know what is wrong (Im new to this), I have also tried to add this:</p>
  <pre><code>await asyncio.wait([one,two,three])
  </code></pre>
  <p>but to be honest I do not know where and why should I add it.
  Without that, my code works but it does not give me result, it prints this:</p>
  <pre><code>(&lt;Task pending name='Task-1' coro=&lt;one() running at /Users/.../Desktop/....py:63&gt;&gt;, &lt;Task pending name='Task-2' coro=&lt;two() running at /Users/.../Desktop/...py:10&gt;&gt;, &lt;Task pending name='Task-3' coro=&lt;three() running at /Users/.../Desktop/...py:91&gt;&gt;)
  </code></pre>
  <p>Any help?</p>