How to get String with break line from list

Hi all!

How to get list ‘Get’ from list ‘a’?
I tried use while loop but can not.

Thank Advance!

Like that :

a = [123, 456, 789,565]
i =0
while i < len(a):
    i += 1
1 Like

Hi Chuong!
Not ‘print’, I want get a String Type with break line (not List Type) coz I use Winform create Lable (List can not binding to Lable)

Now is ‘A’ I want get like ‘B’:

just need change small like this

a = [123, 456, 789,565]
# join list with comma
print('\n'.join(str(x) for x in a))

Thank you!