Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ Cloning
Function
Cloning
cloning_a_list.py:3–4 ·
view source on GitHub ↗
(li1)
Source
from the content-addressed store, hash-verified
1
# Python program to copy or clone a list
2
# Using the Slice Operator
3
def
Cloning(li1):
4
return
li1[:]
5
6
7
# Driver Code
Callers
1
cloning_a_list.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected