6 kyu
Geometry Basics: Triangle Area in 2D
64 of 510taw
Loading description...
Geometry
Fundamentals
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
python:
assert_approx_equals
should be used.Random tests in Python have an unexpressive message, e.g
testing for triangle_area(Triangle(<preloaded.Point object at 0x7f1a1300eeb0>, <preloaded.Point object at 0x7f1a12f8a220>, <preloaded.Point object at 0x7f1a12f19be0>))
To solve this,
Point
should have a meaningful__str__()
implementation :)Says TypeError: Cannot read property 'toFixed' of undefined at /home/codewarrior/index.js:17:107 at /home/codewarrior/index.js:38:5 at Object.handleError In the tester constantly
Does your function return a number?
Oh nevermind that made the error not show up
C translation kumited
Triangle
andPoint
should not be preloaded in Python.I keep getting "python version 3.6 not supported". 3.6 is the only selectable option in the drop down. Am I missing something?
I keep trying to submit my kata and I don't get past the 'attempt' section.
Currently Codewars platform is experiencing issues. Just wait for a bit.
.toFixed is not recognized as a function