Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
You should use arithmetic to distinguish them,not method
You can print their results on the console
thank you for explaining the code!
This comment is hidden because it contains spoiler information about the solution
hey, can u help please? do u know by chance how to convert complex numbers to another type like float?
cause I wrote a quadratic equation but the output is a complex, so... dunno, maybe there is another formula without this conversion problem?
If that depends on random tests values, that'll be random too.
"Execution Timed Out" is sometimes there for code and sometimes not for THE SAME code.
it should run the same amount of time, so what's the problem?
You can not iterate through a loop numbers, in your case the variable "numbers" is a string.
Therefore, you should make a statement under the for loop statement that estabilishes that the variable "num" is an integer.
You do that by typing:
num=int(num)
and then you continue with your if statement.
i'm an idiot. that wasn't my 8kyu level, though dunno why i got a fail when even numbers are the outliers (they are mentioned first in code).
what could i actually use?
currently using .split() for getting a list, int(), .index().
anything recommended?
u got a string type here.
i use int(num) - it changes type to int. though, most likely not the best option.