Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Challenge with my string
#2
M3B6    RIC-F-SA12-01   Fiber Bulkhead-SM/MM-6 Duplex-12 Adapters-ST-Black  25
M3B8    RIC-F-LCU24-01C Fiber Bulkhead-SM-12 Duplex-24 =
Adapters-LC-Black/Blue  1
Is there an error in the second line, should = be followed by Adapters-LC-Black/Blue 1?
The columns seem to be aligned. If this is true for every file you will parse, and the number of character "slots" allocated for a single column is constant, you could get the data you want by slicing and stripping the strings.
Edit.:
Ah that = ("potential error") might be there because otherwise the line is too long and columns arent aligned anymore in this case.
Reply


Messages In This Thread
Challenge with my string - by SpencerH - Oct-06-2018, 11:11 PM
RE: Challenge with my string - by j.crater - Oct-06-2018, 11:23 PM
RE: Challenge with my string - by SpencerH - Oct-06-2018, 11:42 PM
RE: Challenge with my string - by SpencerH - Oct-12-2018, 11:58 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PySpark Coding Challenge cpatte7372 4 6,192 Jun-25-2023, 12:56 PM
Last Post: prajwal_0078
  string format challenge jfc 2 1,816 Oct-23-2021, 10:30 AM
Last Post: ibreeden
  Very difficult challenge for me cristfp 1 2,788 Apr-01-2019, 08:45 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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