Re: [Tutor] trouble with function-- trying to check differences btwn 2 strings

2007-03-06 Thread zannah marsh
what I was trying to do with that loop is check each character in the string against the corresponding character at the same position in the second string. rikart pointed out that my loop was actually checking if that character exists anywhere in the second string. basically, in pseudocode: for t

[Tutor] trouble with function-- trying to check differences btwn 2 strings

2007-03-05 Thread zannah marsh
I am very new to Python (I've been learning it for about 2 weeks, in a class). I wrote this function ( as part of a larger program, for my homework) which is supposed to step through two given strings and check for differences between the strings. It returns a list of the indices at which the char