Programming languages don't have implicit multiplication like written math, so 5((side_length)**2)
is not legal, it's trying to call 5
as a function with argument side_length ** 2
. I'm guessing you want 5 * side_length**2
(removing some extraneous parens that aren't needed since exponentiation binds more tightly than other math ops anyway).
Cleaning it all up, you'd have:
import math
# Use float to get the specific type you want, rather than executing whatever
# code the user types. If this is Py2, change input to raw_input too,
# because Py2's input is equivalent to wrapping raw_input in eval already
length_centre=float(input("Enter length from centre to corner of pentagon: "))
# Strip a whole bunch of unnecessary parens
side_length = 2 * length_centre * math.sin(math.pi / 5)
print(side_length)
# Strip a whole bunch of unnecessary parens (left in some technically unnecessary parens
# because they group the complex operands for the division visually)
areaP = (5 * side_length**2) / (4 * math.tan(math.pi / 5))
print(areaP)