I got stuck on just one the last problem for an hours(((
Can some help me pls. whats wrong with it?
def find_area(radius):
pi=3.14
area=pi*(radius*radius)
return area
I got stuck on just one the last problem for an hours(((
Can some help me pls. whats wrong with it?
def find_area(radius):
pi=3.14
area=pi*(radius*radius)
return area
Your 3rd line as well as considering indentation. A = π r2. Think about it.
The exponent is radius**2 Hope this helps
Looks you you only need to make sure you are indenting after every line in the code block that is a part of your function.
def find_area(radius):
pi = 3.14
area = pi*(radius*radius)
return area
Oh, and make sure you actually print the area like this:
print(find_area(2))