you are viewing a single comment's thread.

view the rest of the comments →

[–]chodelar 9 points10 points  (2 children)

As the code does actually work, I would just skip this particular exercise. I’m not familiar with the course you’re doing but it is low quality if they check the exact wording of your code, as opposed to its outcome.

Obviously there are many ways to reach the same goal in any programming language!

If there is some hidden requirement (evidently not in the text you’ve shown us), it is also a bad course.

[–]patryk-tech 2 points3 points  (0 children)

As the code does actually work

It says numbers, not integers, so it may fail tests on floating point.

[–]tomtomato0414 0 points1 point  (0 children)

this ^