Re: [Tutor] Removing Content from Lines....

2016-03-25 Thread Sam Starfas via Tutor
Thanks to all who responded. I will try the suggestions and see if I can get the rest of my script to work.Thanks again for the tips. Will also read up on "len" and "index". Cool stuff! On Thursday, March 24, 2016 5:57 PM, Sam Starfas via Tutor wrote: Hello,I a

[Tutor] Removing Content from Lines....

2016-03-24 Thread Sam Starfas via Tutor
Hello,I am hoping you experts can help out a newbie.I have written some python code to gather a bunch of sentences from many files. These sentences contain the content: blah blah blah blah 1-up printingblah blah blah blah blah blah blah blah blah blah Presetblah blah blah blah blah blah blah P

[Tutor] Can This Script Be Modified to Read Many Files?..

2016-01-25 Thread Sam Starfas via Tutor
Hi,I am very new to Python, but having fun learning.  I need to have a script read all of the XML files contents that are in a directory, pull out the contents of an element, in my case , and list them in an output file. I have this script that does exactly what I need. But in my beginning Pytho

[Tutor] Combine Scripts to Work Together...

2016-01-22 Thread Sam Starfas via Tutor
Hi,I am new to Python, but learning. (Hopefully the layout is readable) I am having trouble getting two scripts to work together. What I want to do is have the combinded script do the following: 1. Read through a directory of xml files, not a single file, but many xml files.2. Read each files

[Tutor] Removing open bracket, content, close bracket content...

2016-01-13 Thread Sam Starfas via Tutor
Hi,I am new to Python and trying to create a script that will remove content wrapped in brackets.For example I want to remove from each line the following:[!L] [20][!20+:2]etc But when I run my script I only get the last line of the content. It is correct as far as the output I want, but I d