It is a very common mistake people make in this kata. You now have to learn the difference between sorting a list of strings and sorting a list of numbers. Have fun!
Here is a full comparison as an example:
Int String
542 6 MAX
54 542
29 54
6 5
5 4
4 4
4 29
1 1
0 0
-3 -64
-6 -6
-64 -3
-214 -214 MIN
can someone help me!
the test in Python always gives '8 -1' not '42 -9'
even though (1) I used the min() and max() function
(2) passing the list in sort method to return the first item and last item
cool! I didn't know about the match method
This comment is hidden because it contains spoiler information about the solution
is it a built-in function in Python?
It is a very common mistake people make in this kata. You now have to learn the difference between sorting a list of strings and sorting a list of numbers. Have fun!
Here is a full comparison as an example:
samee.
what are we expecting to do? i don't understand
can someone help me!
the test in Python always gives '8 -1' not '42 -9'
even though (1) I used the min() and max() function
(2) passing the list in sort method to return the first item and last item
didn't know about the pop() and extend() 😅
how can we do that?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
wowww. Nice. now I feel stupid xD
This comment is hidden because it contains spoiler information about the solution
can someone explain this??