Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If I return a list from a function that is more than 26 elements, the list goes vertical

If I return a list from a function that is more than 26 elements, the list goes vertical instead of horizontal even if I turn pretty printing off. Is this normal, and can I turn it off? I'm just returning the list, not using print explicitly. i.e.

With range 26 in the testfunc it shows a horizontal list, but if I increase that to 27 it goes vertical:

def tester(): v=[] for i in range(26): v.append(3) return v

If I return a list from a function that is more than 26 elements, the list goes vertical

If I return a list from a function that is more than 26 elements, the list goes vertical instead of horizontal even if I turn pretty printing off. Is this normal, and can I turn it off? I'm just returning the list, not using print explicitly. i.e.

With range 26 in the testfunc it shows a horizontal list, but if I increase that to 27 it goes vertical:

def tester():
    v=[]
    for i in range(26):
        v.append(3)
    return v

v

If I return a list from a function that is more than 26 elements, the list goes vertical

If I return a list from a function that is more than 26 elements, the list goes vertical instead of horizontal even if I turn pretty printing off. Is this normal, and can I turn it off? I'm just returning the list, not using print explicitly. i.e.

With range 26 in the testfunc it shows a horizontal list, but if I increase that to 27 it goes vertical:

def tester():
    v=[]
    for i in range(26):
        v.append(3)
    return v

If I return a list from a function that is more than 26 elements, the list goes vertical

If I return a list from a function that is more than 26 elements, the list goes vertical instead of horizontal even if I turn pretty printing off. Is this normal, and can I turn it off? I'm just returning the list, not using print explicitly. i.e.

With range 26 in the testfunc it shows a horizontal list, but if I increase that to 27 it goes vertical:

def tester():
    v=[]
    for i in range(26):
        v.append(3)
    return v