How to return list of lists

Wolfgang Maier wolfgang.maier at biologie.uni-freiburg.de
Thu Apr 25 11:57:50 EDT 2013


Eternaltheft <eternaltheft <at> gmail.com> writes:

>
> Ah sorry the task is to make a function for this:
> def tTable(n): 
> tTable(n),even n, returns the initial triangular n-1 x n-1(triangular
table i posted before) table as a
> list of lists. For example, tTable(4) returns [[1, 2, 3], [3, 4], [5]].
> 
> Sorry if i was a bit vague, but i don't know how to explain it any better
:(. And thanks for the tips! I will
> definitely read up on it when i get the time. 
> 

So if you posted this before, why are you asking again?
Could you provide a link to the post? Otherwise, I guess I'll look for it
when I get the time ;)






More information about the Python-list mailing list