Write a Python program to clone or copy a list.

def func(lst):
    return lst.copy()


# Driver Coder
print(func([1, 10, 18, 20, 250, 250, 12]))


Follow on:
  • Twitter
  • Facebook
  • Instagram
  • Linkedin
  • Linkedin
Sunil Shaw

Sunil Shaw

  • Youtube
  • Instagram
  • Twitter
  • Facebook
About Author

I am a Web Developer, Love to write code and explain in brief. I Worked on several projects and completed in no time.

Related Page