About 50 results
Open links in new tab
  1. python - Reversing words of a string without using inbuilt functions ...

    Dec 16, 2022 · 6 I was wondering if I could reverse a string without using collections and in-built functions of string, Please do add your thoughts on the approach and if possible do share your way …

  2. python - Reversing vowels in a string - Code Review Stack Exchange

    Jul 3, 2024 · Reverse this list Iterate through the indices pointing to each character of the target string For each index, check if the indexed character is a vowel If yes, retrieve the next vowel from the list …

  3. String reversal in Python - Code Review Stack Exchange

    Mar 11, 2019 · The reverse_b function uses the C implementation, compiled with -O3, provided in the answer by @Broman, with a wrapper to create the string buffers and extract the output:

  4. python - Print a word, one character per line, backwards - Code Review ...

    Sep 7, 2020 · print(word[-1]) This project seems to be a fine way to explore string slicing. On the python website's "An informal introduction to Python" string slicing is introduced and it is shown that getting …

  5. python - Reverse complement of a DNA string - Code Review Stack …

    Dec 31, 2016 · I have a function in python where I want the reverse complement of a DNA string. This is what I have now: def inversComplement(input): output = '' for letter in input: letter = le...

  6. Palindrome and Reverse a String Problems (JavaScript, Python)

    Oct 14, 2019 · 3 Problem 1 Given a string, the task is to reverse the string and return a reversed string. Problem 2 Given a string, return true if the string is a palindrome or false if it is not. Code Just for …

  7. python - Reversing substrings in parentheses - Code Review Stack …

    Sep 17, 2017 · Problem: The task is to reverse the strings contained in each pair of matching parentheses, starting from the innermost pair. The results string should not contain any parentheses. …

  8. python - Reverse vowels in a string - Code Review Stack Exchange

    Nov 18, 2016 · Instead of using string_list.index(vowel) in the second loop you can instead build an index list in the first loop. And reverse either the index list or the vowels list.

  9. Reversing a String in Python - Code Review Stack Exchange

    Aug 27, 2015 · Also, it does not handle leading BOM, trailing NUL bytes, or trailing newlines properly. What about character pairs such as directional quotes, brackets, and parentheses? Though …

  10. python - ASCII code decode to string - Code Review Stack Exchange

    Apr 21, 2019 · The ASCII string is then reversed to get the encoded string " 0018014111117811180180110127 ". The characters in encoded string are within the range 10 - 126 …