Complete the function ```circleArea``` so that it will return the area of a circle with the given ```radius```. Round the returned number to two decimal places (except for Haskell). If the radius is not positive or not a number, return ```false```.

Example:

```python
circleArea(-1485.86)     #returns false
circleArea(0)            #returns false
circleArea(43.2673)      #returns 5881.25
circleArea(68)           #returns 14526.72
circleArea("number")     #returns false
```

Source: codewars | Difficulty: EASY
Tags: Geometry

Fundamentals

Mathematics

Starter code: def circleArea(r):
	

Solutions:
from math import pi

def circleArea(r):
	return round(pi * r ** 2, 2) if type(r) in (int, float) and r > 0 else False


import math

def circleArea(r):
	try:
		if r > 0:
			return round(math.pi * r ** 2, 2)
		else:
			return False
	except TypeError:
		return False


from numbers import Number
import math

def circleArea(r):
	if isinstance(r, Number):
		if r > 0:
			return round(r * r * math.pi, 2)
		else:
			return False
	else:
		return False


from numbers import Number
import math

def circleArea(r):
	if not isinstance(r, Number) or r < 0:
		return False
	return round(math.pi * r * r, 2)


circleArea = lambda _: round(__import__('math').pi * _ ** 2, 2) if (type(_) == float or type(_) == int) and _ > 0 else False


import math

def circleArea(r):
	return type(r) in (int, float) and r > 0 and round(math.pi * r ** 2, 2)


from math import pi

def circleArea(r):
	return round(pi * r * r, 2) if type(r) != str and r > 0 else False


circleArea = lambda r: round(r ** 2 * 3.14159265359, 2) if type(r) != str and r > 0 else False