On 10/29/11 10:35 AM, David Joyner wrote:
I would suggest that this "feature" in Python, was "fixed" in Python 3.0. Sage has not yet upgraded to 3.0.
Luckily, Python includes a time machine to import things from the future ;) sage: from __future__ import division sage: S = [(die1, die2) for die1 in [1..6] for die2 in [1..6]] sage: E = [throw for throw in S if sum(throw) == 7] sage: len(E)/len(S) 0.16666666666666666 Thanks, Jason -- You received this message because you are subscribed to the Google Groups "sage-edu" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sage-edu?hl=en.
