Prachi K.

asked • 09/21/20

How can I print these elements of the list in python?

The list is given [ 1, 2, [3, 4, 5], [6, 7]]. How can show the output as 1, 2, 3, 4, 5, 6, 7.

Prachi K.

The output should be 1 2 3 4 5 6 7 with no commas.
Report

09/21/20

1 Expert Answer

By:

Brian Z. answered • 09/21/20

Tutor
New to Wyzant

Python Software Engineer with 5+ Yrs Experience in Data Science

Prachi K.

Thank you so much. This is very helpful.
Report

09/21/20

Brian Z.

you are welcome friend, if there is other questions about python programming, I'm so glad to answer...
Report

09/21/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.