Feb-02-2020, 09:52 AM
Why does print(listA.sort()) return None ? But if I sort first and then print(listA), returns the sorted list items.
1 2 3 |
listA = [ 1 , 2 , 3 , 9 , 8 , 7 , 6 ] print (listA[ 1 ]) print (listA.sort()) |