logo-MindMajix
PostPythonPython
christina joce

Posted on 19th July 2024|36 views

0
votes

Python Print List Without Brackets

Is there any possible way in python to print list without brackets?

1 answers
Answers
P
Sowjanya Kodiganti

Posted on 19th July 2024| views

Yes you can print list without brackets use * to do so, here is the example

li = ["x", "y", "z"]

print(*li, sep = ", ")

Output:

x, y, z

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number