How do I copy a file from docker container to host

519    Asked by asutos_8102 in Python , Asked on Jul 25, 2021

 I want to print a list in python without the square brackets. It is always coming printing like [“a”,”b”,”c”]
Answered by Anil Jha

 To solve print list without brackets python you can follow the following code:

name=["a","b","c"]
print (', '.join(name))
It will simply take all the elements in a list(name), and joins them with ‘, ’

Your Answer

Interviews

Parent Categories