Skip to content

Customise list printing #2898

Answered by geekya215
tekumara asked this question in Q&A
Mar 25, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

you should unpack the list parameter, and set the default separator to \n

console.print(*["a", "b", "c"], sep='\n')

get more detailed information from here

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tekumara
Comment options

@geekya215
Comment options

@tekumara
Comment options

@geekya215
Comment options

Answer selected by tekumara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants