Ad
  • Custom User Avatar

    You should use arithmetic to distinguish them,not method
    You can print their results on the console

  • Default User Avatar

    thank you for explaining the code!

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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?

  • Custom User Avatar

    If that depends on random tests values, that'll be random too.

  • Default User Avatar

    "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?

  • Default User Avatar

    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.

  • Default User Avatar

    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?

  • Default User Avatar

    u got a string type here.
    i use int(num) - it changes type to int. though, most likely not the best option.