Is there a way to add a line break in the result of a sorted applied to a list of tuples ?
my list of tuples :
b1 = ("八", 222, 133, 343)
b1a = ("丷", 3001, 61, 0)
b2 = ("巴", 610, 33, 281)
b3 = ("白", 287, 70, 838)
b4 = ("百", 226, 13, 383)
b5 = ("办", 323, 3, 279)
b6 = ("半", 374, 21, 495)
b6a = ("勹", 3001, 46, 1)
b6b = ("包", 417, 37, 471)
b7 = ("贝", 1424, 137, 60)
b8 = ("本", 76, 11, 856)
hanzi = [b1, b1a, b2, b3, b4, b5, b6, b6a, b6b, b7, b8]
I apply a sorted to sort the tuples :
print(sorted(hanzi, key=lambda hanzi: hanzi[2])
The result is a list of tuples :
[('办', 323, 3, 279), ('本', 76, 11, 856), ('百', 226, 13, 383), ('半', 374, 21, 495), ('巴', 610, 33, 281), ('包', 417, 37, 471), ('勹', 3001, 46, 1), ('丷', 3001, 61, 0), ('白', 287, 70, 838), ('八', 222, 133, 343), ('贝', 1424, 137, 60)]
I want them in a column like below :
[('办', 323, 3, 279),
('本', 76, 11, 856),
('百', 226, 13, 383),
('半', 374, 21, 495),
('巴', 610, 33, 281),
('包', 417, 37, 471),
('勹', 3001, 46, 1),
('丷', 3001, 61, 0),
('白', 287, 70, 838),
('八', 222, 133, 343),
('贝', 1424, 137, 60)]
I am a beginner with python, don't know where add '/n' :-) Even don't know if is possible ! do i have to modify the tuples themselve ?