CLEEEVER
the same approch we had :) happy coding
Thanks for the feedback, updated the description!
Same issue; tried both of these approaches (round & float).
OH! So reverse the order of the numbers, as given, not reverse numerical order... I guess I made an assumption there, but maybe it's worth clarifying for others. Thanks for the quick reply.
just to explain the task a bit clearer:
this is the number n: 35231
A list with each number as an own entry looks like this:
[3,5,2,3,1]
Now reverse the order of the list like this:
[3,5,2,3,1] [1,3,2,5,3]
the last number in the list becomes the first, the second-last the second and so on..
I don't understand how the instructions (return a list of ints in reverse order) could result in the test cases (this is in Python):
Test.assert_equals(digitize(35231),[1,3,2,5,3])
Why isn't is [1,3,3,2,5]?
Please clarfiy the instructions or fix the test case. thanks!
Loading collection data...
CLEEEVER
the same approch we had :)
happy coding
Thanks for the feedback, updated the description!
Same issue; tried both of these approaches (round & float).
OH! So reverse the order of the numbers, as given, not reverse numerical order... I guess I made an assumption there, but maybe it's worth clarifying for others.
Thanks for the quick reply.
just to explain the task a bit clearer:
this is the number n: 35231
A list with each number as an own entry looks like this:
Now reverse the order of the list like this:
the last number in the list becomes the first, the second-last the second
and so on..
I don't understand how the instructions (return a list of ints in reverse order) could result in the test cases (this is in Python):
Test.assert_equals(digitize(35231),[1,3,2,5,3])
Why isn't is [1,3,3,2,5]?
Please clarfiy the instructions or fix the test case. thanks!