Ad
  • Custom User Avatar

    The return statement is reduntant here as R returns the last evaluated object of the function.

  • Custom User Avatar

    Seeing the input, you can see if your code is fine or not, the expected values are fine:

    Python Completions 18237

    As it says in the description, your code should keep the original case of each letter.

  • Custom User Avatar
  • Default User Avatar

    I have the same problem. @Chrono79 how does it help to print the input?
    Can anyone help here?

  • Custom User Avatar

    You're using a global var, it keeps its value in the next tests. It doesn't work when called multiple times.

  • Custom User Avatar

    No, the problem is with your code, how do you explain 13k solutions if not? Do what I told you so I can see what you did wrong, otherwise it's you saying your code is right and me saying it's not.

  • Default User Avatar

    if its saying true in codewars the problem is with the kata, bc there is no 'n' in the sentence.

  • Custom User Avatar

    Print the input, it's a problem with your code.

  • Custom User Avatar

    A problem with your code isn't a kata issue, post your code using markdown formatting and mark your post as having spoiler content. There are almost 13k completions in Python already.

  • Custom User Avatar

    My code works perfectly in terminal and jupyter notebook.

    This isn't a pangram! ---> In codewars, it produced True, in terminal, it produced False
    abcdefghijklmopqrstuvwxyz ---> In codewars, it produced True, in terminal, it produced False

  • Custom User Avatar

    My code passed 18 and failed 198,

    Grfg should equal Grfg -----> Passed...All passed cases falls under this category...Return lowercase for lowercasse and uppercase for uppercase
    '16rxbnQ435IE4okh' should equal '16RXBNQ435IE4OKH' ----> Failed....All failed cases falls under this category...return all in uppercase only

    now for which logic should i write a code? Should I change all alphabets to uppercase?

    edit: Code in python 3.6

  • Custom User Avatar

    there is no value for '' in your dict1