178k views
1 vote
Python people: can you explain how to fix this error?

Python people: can you explain how to fix this error?-example-1
User Gsteinert
by
7.3k points

1 Answer

1 vote

In your sqrt() function, you're not multiplying your factors. You need to add * between them, like this:

area = str(math.sqrt((s-a)*(s-b)*(s-c)*(s-d)))

User Lechup
by
8.1k points