Ad
  • Custom User Avatar

    To be honest, I forked the previous code into this one to display ASCII conversion from numbers to letter-characters.

    In addition, Rest Parameters are thrown in to keep the input seperate from the name throughout the code.

    Enjoy!

  • Custom User Avatar

    This is far, far too much code. It's bloat.

  • Custom User Avatar

    This solution is beneficial if you enjoy manipulating arrays and strings.

  • Default User Avatar

    Hello mate! you can check if a word is a palindrome by turning the word around with slices, and then comparing it to the original word, like this:
    if string == string[::-1]
    print('This word is a palindrome!')

  • Custom User Avatar

    PEP 8

    Always surround these binary operators with a single space on either side: assignment (=), augmented assignment (+=, -= etc.), comparisons (==, <, >, !=, <>, <=, >=, in, not in, is, is not), Booleans (and, or, not).