Hello,
My python code needs to run on versions 2.7 to 3.4. To use stringio
function as appropriate, the code i use is;
if sys.version < '3':
dictionary = io.StringIO(u"""\n""".join(english_words))
else:
dictionary = io.StringIO("""\n""".join(english_words))
The co
> On May 4, 2015 2:17 AM, "anupama srinivas murthy" <
> anupama.2312.bm...@gmail.com> wrote:
>
>> Hello,
>>
>> My python code needs to run on versions 2.7 to 3.4. To use stringio
>> function as appropriate, the code i use is;
>>
>> if
for a[x] in a:
print(a)
Except for when x = 0, a[x] never takes on its original value throughout
the iterations
So for x = 0, we get:
[0, 1, 2, 3]
[1, 1, 2, 3]
[2, 1, 2, 3]
[3, 1, 2, 3]
For x = 1:
[0, 0, 2, 3]
[0, 0, 2, 3]
[0, 2, 2, 3]
[0, 3, 2, 3]
For x = 2:
[0, 1, 0, 3]
[0, 1, 1, 3]
[0, 1