Python Function inputs
<p>I am trying to teach myself Python on code academy and have written the following basic code, which is not working as whatever the input the outcome is <code>'Please Enter a Valid Number'</code> and I get a message saying <code>"Oops, try again! Make sure area_of_circle takes exactly one input (radius)."</code></p>

<pre><code>import math

radius = raw_input("Enter the radius of your circle")

def area_of_circle(radius):
    if type(radius) == int:
        return math.pi() * radius**2
    elif type(radius) == float:
        return math.pi() * radius**2
    else:
        return "'Please enter a valid number'"

print "Your Circle area is " + area_of_circle(radius) + " units squared"
</code></pre>

<p>The original assignment is:</p>

<blockquote>
  <p>Write a function called <code>area_of_circle</code> that takes <code>radius</code> as input and returns the area of a circle. The area of a circle is equal to pi times the radius squared. (Use the math.pi in order to represent Pi.)</p>
</blockquote>
