Ad
  • Custom User Avatar
  • Default User Avatar

    Also, for lists it returns True if not and empty list

  • Default User Avatar

    if result: is the same as writing if result == True: if checks the validity of the condition.

  • Default User Avatar

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

  • Default User Avatar

    Excellent usage of regex! Didn't know how to use lazy quantifier correctly, as otherwise this would have been my first solution to the problem!

  • Default User Avatar

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

  • Default User Avatar

    You can ask him in a few years how are his programming skills.

  • Default User Avatar

    Hello Blind4Basic,

    You are right. The search method will try to find 8 characters anywhere in the string, so the comma does not have an use here.

    But with the second I only agree partially, although '\n' is a valid character in a string, I don't know if the newline character is valid in any password.

    Thank you for pointing this out!

    Best regards,
    dumistrocel

  • Custom User Avatar

    No clue, maybe you're mistaking the input for that test? There is no fixed test with that input, so I can't really reproduce it.

  • Default User Avatar

    Hello Chrono79,

    Your are right, but still, this does not explain why the expected result in the random tests was 100, instead of 123.

  • Custom User Avatar

    Is a a consonant? The expected value should be 123 for that input string.
    I've solved it in Python and checked the control function, it expects 123 for that input string.

  • Default User Avatar

    Hello,

    Can anyone help me understand what is happening with the following random test? The expected result seen in the test should be 100, but my app shows the correct result as 124, as confirmed by selecting the respective group by hand -> 'azzxyv' and solving the group as the value 124. Language I'm using is Python 3.6.

    Thanks

    Test.assert_equals(solve("rgoaqoupeeiotaobkasaheuuijxikfksaiuagnaiumeowjuueoiwofudhsrxujauueeibaiyiuuochuukxnziooimaybayafiamoexsnuvzvuiuhaeihzhaaluuuanpmxviazzxyveenuwlwyuxopueiaeknyaimujpqneeuriuyolsaeeeuukeeyeuooriaotiioepubittqwieoxaeuwouiaonuiauleoneujiasuesdooiiiiaasxouthziiqkovuyeoworaraubeoailooeoedonoxiuudpukiyjeioauaehiuaweviabaogaziumuueekeaorqbboeietktsrzoceekaeuvoigoiveuoabunieaakajuiomfxaenwqghojwoinioqxoavgeikeuokuealfqofairouazaleliioootwlhaejoioaeooiugpooumaiuolweiouhoaarilesiuabobteoreuiivouadalkpetafceanverikpqsqiiexhkuqaoleaeeadyuwameogouutaedioimodcoenuuahufofwgnhaanoueluhtyeohoeuigfeldkiuepiaueebeeueiosxiuaiicuyitsainiaiuauaoxuiqiouobwoxiuqzlarfrbaasoumopoorquoeugqitvsioloefriuyltqctuorzaalufefrecwaxufekeeoiavbiaiugkaoaiyiaieknjaiukfexoeceearooiunocieuesiuteuoudeaickasafswiinazuuhijauiitoggzuiaovuoujggvfcuitjhogauxefiiueeamaimwoueuoiceuuizboaaaiheeiiuiwcuaocujluoc"),100)