D:\Baldwin\AA-School\PyProg>python
Lists06.py
Create and print a list [100, 200, 300, 400, 500] Original length is: 5 Replace an element Print the modified list [100, 200, [2, 4, 8, 16, 32, 64], 400, 500] Modified length is: 5 Extract and display each element in the list 100 200 [2, 4, 8, 16, 32, 64] 400 500 Extract and display each element in nested list 2 4 8 16 32 64 D:\Baldwin\AA-School\PyProg>
Figure 6 |