The document Raman posted looks more like a definition of his sequence rather than a computer code. As for your code, yes, it would work. There is also something I was told in CS classes: "use temporary variables for temporary uses"
While def whateverFloatsYourBoat(a): n=0 m=0 for i in range(0,10): n=a+m m=n+2 n=(m+n)/2 m=a+n-m return [n,m] is perfectly valid, it is far from being understandable. On Wednesday, July 10, 2013 4:33:05 PM UTC+2, vdelecroix wrote: > > It does make sense for a computer. The following code is perfectly valid > {{{ > a = 4 > a = 3 * a > }}} > > V. > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/groups/opt_out.