Assume the list numbers 1 has 100 elements, and numbers 2 is an empty list. Write code that copies the values in numbers 1 to numbers 2.

I would like to have a program of this question from python, chapter 7 - list and tuples

Recommended Answers

All 2 Replies

As you can guess, this is your homework to complete but feel free to ask questions about where you are stuck. There are hundreds of books about Python so no one can guess what book this is.

Hint. It's a single line of code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.