Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic program
#3
Are you going to do this on numbers, or strings of digits?

The latter would be better.

One approach:
  • create a string of even digits, evens
  • create a string of odd digits, odds
  • iterate through the source list of strings, for each entry:
    • build string of even digits in order found in entry i.e. digits found in evens string
    • build string of odd digits in order found in entry i.e. digits found in odds string
    • concatenate the two strings and add to list of output strings
  • output the list of output strings
I am trying to help you, really, even if it doesn't always seem that way
Reply


Messages In This Thread
Basic program - by balajee - Sep-11-2018, 09:36 AM
RE: Basic program - by buran - Sep-11-2018, 12:10 PM
RE: Basic program - by gruntfutuk - Sep-11-2018, 07:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Basic Python Program for Sequence patycanes 7 10,045 Jul-15-2018, 08:53 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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