[Solved] max min sum printing can be simplify in fewer lines?


You can do it in 2 lines by combining the print statements:

digits = [1,2,3,4,5,6]
print(max(digits),min(digits),sum(digits))

Or alternatively split it by new lines:

print(max(digits), min(digits), sum(digits), sep='\n')

solved max min sum printing can be simplify in fewer lines?