Ad
  • Custom User Avatar

    You are returning either None or the first element in result upon first iteration. You should instead, check if any prime numbers exist between each pairwise elements in result, and only return that element if it does not exist a prime number in between, Otherwise, return None.

  • Default User Avatar

    I had same and using rstrip instead of strip() helped

  • Custom User Avatar

    Try to print the input, check why your code is failing. Your code passed all tests until it throw an error, there are more tests.

    Python Completions 3648

  • Custom User Avatar

    you are to create a password of the given length using characters based on the boolean flags

  • Custom User Avatar

    Have you read the error message?, try printing index and see why your code is failing.

  • Custom User Avatar

    Please post your code using markdown formatting and mark your post as containing spoiler content.