On 10/09/2011 11:27 AM, Christopher King wrote:
I know the method of finding every string, and inserting a swapcase in to
the code. Does anyone now a way just to insert code at the top though?
P.S. I use python 2.*
Would you consider answering the rest of my questions? Since this is
obviously a puzzle of some sort, could you just show us the whole
problem, as given in the puzzle book, or on the blackboard?
If the program to be modified is a trivial one, using only prints of
literal strings to stdout, then perhaps you want all of stdout
modified. You could solve *that* problem by replacing sys.stdout with
an object of your own creation.
--
DaveA
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor