[Tutor] help with augumented assignment y += 1

Emile van Sebille emile at fenx.com
Wed Jul 30 19:17:03 CEST 2008


Norman Khine wrote:
> Hello,
> 
> I am writing a poll application, which has two XML files:

Is this entire question consistent?  I ask because when you get to 
asking your question below, it sounds like you're trying to tie together 
two outputs:

<snip and paste from below>

 > This returns:
 > ['1'] ['1', '2', '2', '2'] [1, 1, 2, 4]
 > ['0'] ['1', '2', '2'] [2, 2, 3]

...and

 > This returns:
 > [{'question': 'a1', 'options': [[u'Yes', u'No', u"Don't know"]],
 > 'title': u"Is an augumented assignment such as 'x=x + 1' the same as x
 > += 1?"}, {'question': 'a2', 'options': [[u"'x=(x * y) + 1'", u"'x=x
 > *(y + 1)", u"'x=(y + 1) * x'", u'All of the above']], 'title': u"The
 > statement 'x *= y + 1' is equivalent to:"}]

The second is clearly the survey -- it's the first I question.  How do 
those two lines relate to the xml response?

If you could coalesce your example into a single executable or clearly 
relate those two lines to the xlm response it (presumably) derives from 
there's a better chance you'll get a more helpful reply.

Regards,

Emile



More information about the Tutor mailing list