Python Forum
Help with extracting characters from string
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with extracting characters from string
#1
For our project we need to extract single characters from a given string which are separated from each other by the increasing number of places. Each extracted character must be exactly one place more apart from its predecessor than the one before. We need to use a string formed from the extracted characters as an input for the next phase of the project. Does anyone know how to solve this.

Example:
Input string: "A clown has a red nose.".
Output string: "A lnsee".
Reply


Messages In This Thread
Help with extracting characters from string - by valentino1337 - Feb-19-2024, 09:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Replacing a few characters of a specified character but not all of them from a string fatherted99 7 3,313 Aug-13-2020, 09:08 AM
Last Post: fatherted99
  Counting the number of occurrences of characters in a string nsadams87xx 1 1,966 Jun-16-2020, 07:22 PM
Last Post: bowlofred
  testing indivudual string for alternating characters Titus444 3 2,757 Nov-01-2018, 10:28 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020