Hello Sage-Devel,

For each n, I want to create a list of numbers [0,..., binomial(n,2)-1]. 
When I use the "[0...3]" or "[0..5]" (or similar) in the terminal, 
everything is fine. When I put any of those into a function, I get an 
attribute error. For example, I can make the function

def error_maker(n):

    return [0..n]


When I run error_maker(3), I get:

AttributeError: 'float' object has no attribute 'n'

Does anyone know how I can avoid this problem?

Thanks in advance!

Galen

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/429358f8-c6f7-4522-bfba-5ca709b13e7fn%40googlegroups.com.

Reply via email to