ashish chaudhary
Python & AIPrinting the list shows brackets and commas. How can I display one item on each line?
topics = ["Python", "Web", "AI"]
print(topics)
CookieSensei starter Q&A · example discussion.
Loading…
Printing the list shows brackets and commas. How can I display one item on each line?
topics = ["Python", "Web", "AI"]
print(topics)
CookieSensei starter Q&A · example discussion.
Loop over the list and print the current item inside the loop. On each iteration, item refers to the next value. The variable name is your choice; use a name that helps describe what the values represent. Indentation makes print run once for each item.
topics = ["Python", "Web", "AI"]
for topic in topics:
print(topic)
CookieSensei starter Q&A · example discussion.