nope, the problem description includes this:
Assumptions You can assume that you are only given numbers.
if we're ever passed a list that includes non-numbers, it's the code calling our function that's breaking the contract, not us
you are not alone
Didn't we have to consider that array element could be not a number?
oh I just learned how to use "not in" recently but I forgot to apply it.
same here LOL
:P
and then of course, there's this
biggest facepalm i ve ever had
Haha clever
when using list comprehensions, if you have no else to add, you should use the if after the for not before it. I guess that's the reason try it yourself.
Very simple to use ;)
😎it`s me
and here I assumed I couldn't just sort a string...
Useful when you want to learn 'not in' list
My solution... Lol :)
Loading collection data...
nope, the problem description includes this:
if we're ever passed a list that includes non-numbers, it's the code calling our function that's breaking the contract, not us
you are not alone
Didn't we have to consider that array element could be not a number?
oh I just learned how to use "not in" recently but I forgot to apply it.
same here LOL
:P
and then of course, there's this
biggest facepalm i ve ever had
Haha clever
when using list comprehensions, if you have no else to add, you should use the if after the for not before it. I guess that's the reason
try it yourself.
Very simple to use ;)
😎it`s me
and here I assumed I couldn't just sort a string...
Useful when you want to learn 'not in' list
My solution... Lol :)
Loading more items...