LIST = ['Python','problem','whatever']
print(LIST)
When I run this program I get
[Python, problem, whatever]
Is it possible to remove that square brackets from output?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could convert it to a string instead of printing the list directly:
If the elements in the list aren’t strings, you can convert them to string using either
repr(if you want quotes around strings) orstr(if you don’t), like so:Which gives the output: