w3resource logo


Python Exercises

Python Exercise: Program to clone or copy a list


Write a Python program to clone or copy a list.

Sample Solution :

Python Code :

  1. original_list = [102244234]  
  2. new_list = list(original_list)  
  3. print(original_list)  
  4. print(new_list)  

Console :


Copy and paste the above code and press "Enter key" to execute :

Post your code through Disqus