Ad
  • Custom User Avatar

    should i use other data structure or algorythm to solve that in python?

  • Custom User Avatar

    thank for feedback.. but if i return then how i can i loop through .
    just an example
    def trial:
    for num in range(11):
    return num

    then the function will break because of returing everytime...

  • Custom User Avatar

    0 ==> 0
    2 ==> 5
    3 ==> 5
    12 ==> 15
    21 ==> 25
    30 ==> 30
    -2 ==> 0
    -5 ==> -5

    Input: 1: None should equal 5

    this is my kata on codewar...

    output is okay ... same to same
    why i am still getting this error