Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #107049
| X-Received | by 10.107.59.78 with SMTP id i75mr13884391ioa.22.1460722384225; Fri, 15 Apr 2016 05:13:04 -0700 (PDT) |
|---|---|
| X-Received | by 10.50.57.19 with SMTP id e19mr76760igq.6.1460722384165; Fri, 15 Apr 2016 05:13:04 -0700 (PDT) |
| Path | csiph.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!news.glorb.com!g8no1521138igr.0!news-out.google.com!u9ni82igk.0!nntp.google.com!gy3no4339444igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail |
| Newsgroups | comp.lang.python |
| Date | Fri, 15 Apr 2016 05:13:03 -0700 (PDT) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=42.60.61.241; posting-account=fYytbAoAAADPnCUTvPcswhnu3uwmFB5f |
| NNTP-Posting-Host | 42.60.61.241 |
| User-Agent | G2/1.0 |
| MIME-Version | 1.0 |
| Message-ID | <edfe7d06-e8b1-4cef-92c3-2d1a217ebdac@googlegroups.com> (permalink) |
| Subject | How to print a part of a string? |
| From | durgadevi1 <srirajarajeswaridevikrupa@gmail.com> |
| Injection-Date | Fri, 15 Apr 2016 12:13:04 +0000 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Xref | csiph.com comp.lang.python:107049 |
Show key headers only | View raw
Hello all, I have another homework problem. I have a textfile. It contains lines of string. I am required to only print out a certain part of the string. For example the textfile contain: ABC XXXXX NNNNN BCD QQQQQ EEEEE ABC WWWWW AAAAA I need to print all the parts that come after only ABC. That means I need to print only XXXXX from the first line and WWWWW from the second line. I'm not sure of what code to use to achieve that.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How to print a part of a string? durgadevi1 <srirajarajeswaridevikrupa@gmail.com> - 2016-04-15 05:13 -0700 Re: How to print a part of a string? Joel Goldstick <joel.goldstick@gmail.com> - 2016-04-15 08:28 -0400 RE: How to print a part of a string? Dan Strohl <D.Strohl@F5.com> - 2016-04-15 14:27 +0000 Re: How to print a part of a string? durgadevi1 <srirajarajeswaridevikrupa@gmail.com> - 2016-04-16 00:25 -0700 RE: How to print a part of a string? Joaquin Alzola <Joaquin.Alzola@lebara.com> - 2016-04-15 12:40 +0000
csiph-web