25th Nov 2024, 2:13 PM
Stone
Stone - avatar
4 ответов
+ 3
Alhaaz , why do you recommend importing the math module for this task ?
25th Nov 2024, 3:15 PM
Lothar
Lothar - avatar
+ 2
Stone , this request and code was already posted by you just a few hours ago. i gave you some hints and tips how to solve the issues. meanwhile your first post was deleted, and the same once appeared again. now the 2 new answers with the solutions are available, which has saved you some effort and thinking about your own way. this behaviour does not motivate people to give help and support, because also their effort for you is gone by deleting.
25th Nov 2024, 2:56 PM
Lothar
Lothar - avatar
0
Stone In your code you have written herons triangle area formula:- s(s-a)(s-b)(s-c)**0.5 instead of this write math.sqrt(s*(s-a)*(s-b)*(s-c)) and don't forget to write "import math" on the top.
25th Nov 2024, 2:44 PM
Alhaaz
Alhaaz - avatar
0
Lothar Actually, in Stone's code on line 16. '*' is missing and everything is fine, i recommend to importing the math module to let him know that python have a math module too which can help in mathematical operations.
26th Nov 2024, 6:45 AM
Alhaaz
Alhaaz - avatar