[Tutor] Assigning range :p:

Christopher King g.nius.ck at gmail.com
Thu Jul 28 19:12:07 CEST 2011


On Wed, Jul 27, 2011 at 9:11 PM, Thomas C. Hicks <paradox at pobox.com> wrote:

> On Wed, 27 Jul 2011 20:16:31 -0400
> Alexander Quest <redacted@example.com> wrote:

 x=range(1,50)
> mid=x[len(x)/2]
>
> You would have to make sure there is a way to work around decimal points in
the division. Also, I would try it in practice. (remember range(1, 50) does
not include 50.)

> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110728/5efb946b/attachment.html>


More information about the Tutor mailing list
l>