Python Exercise: Program to clone or copy a list
Write a Python program to clone or copy a list.
Sample Solution :
Python Code :
original_list = [10, 22, 44, 23, 4] new_list = list(original_list) print(original_list) print(new_list)
Console :
Copy and paste the above code and press "Enter key" to execute :
Post your code through Disqus