0

I have a file where I must find and delete a string, which in this case is called 'queue'. After I delete it, I must then delete all the following lines until a '[' character is found. I can't figure out how to do this, being a newbie in python as I am, and would appreciate any help.

2
Contributors
1
Reply
14
Views
2 Weeks
Discussion Span
Last Post by Reverend Jim
2

There is a general rule in programming that states "if you don't know what your program is supposed to do then you shouldn't start writing it."

Start by writing the algorithm in English (pseudo-code). Then do a walk through of the pseudo-code to see if the algorithm is correct. After that you can start coding.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.