Python def marked as invalid syntax

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.


Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

Closed 7 years ago.

Im working on a (in-shell) geometry calculator in Python, and I get a syntax error everytime marked as the def in the below code:

def scepm(r,h):#surface-area circular-prism(cylinder)comment s.o.f. only
    print(3.14159265358979323846264338327950*r**2+3.14159265358979323846264338327950*r*h)

It might be something obvious. If it is, can someone please point it out? thanks

Leave a Comment