Hello everyone, I know that there are lots of threads about section 5.3 step 16. I have been trying everything I can think of. I get either syntax errors, type errors or none. I cannot get this code to run properly. I have spent so much time on this. Is there anyone who can help?
Post a copy of your code. We can’t help if we can’t see it.
I’m having the same issue
If I can see a copy of your code it would help. We help fix a problem we cant see.
I can tell you the program they want is pretty much just like the last program step 10 and 11. It just a different math.
Hello,
Could you please explain further?
5.3 step 10 and 11. You had to write a program to get the circumference of a circle. 5.3 steps 15 and 16 you need to write a program to the the area of a circle. Same program different math.
Thank you everyone for responding I am about to get a copy of my code and post it. It will be a few minutes though as I am going to try some of the advice already given
def find_area(radius):
pi = 3.14
area = pi * radius ** 2
return area
user_input=int(input(“Enter the radius here:”))
print(find_area(int))
Traceback (most recent call last):
File “python”, line 6, in
File “python”, line 3, in find_area
TypeError: unsupported operand type(s) for ** or pow(): ‘type’ and ‘int’
i think I just figured it out!