ng on here; First, 'myVar + 1' gets
evaluated, then myVar = (result of previous evaluation) gets evaluated.
Given 'myVar' is in both evaluations, smart programmers get lazy (lazy
like a fox, not sloth like lazy) and decide not to repeat the variable
name.
x27;ll have to get used to it. Start with the next
section of the book, 'Learning the Jargon'.
HTH,
Tim Bowden
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ontext).
#!/usr/bin/python
import random
i=0
for flip in range(100):
i += random.choice((0,1))
print "Heads: %d, Tails: %d" % (i, 100-i)
#
Tim bowden
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
other tech lists.
>
> Absolutely so, and well summarised.
>
> Alan G.
> http://www.alan-g.me.uk/
And the off list reply was pretty much what you'd expect. Funny old
thing life.
Tim Bowden
--
Mapforge Geospatial
Open Source Spatial Consulting
http://www.mapforge.com.au
_
ass by getting others to solve your
programming problems for you, get some spine and do it properly or fail
graciously. The alternative is to be a fraud, and that never gets
respect.
Tim Bowden
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor