list-copy function using range() : Range : Buildin Function PYTHON TUTORIALS


PYTHON TUTORIALS » Buildin Function » Range »

 

list-copy function using range()


def f(mylist, data):
    newlist = mylist[:]            # make a copy of mylist
    for i in range(len(mylist)):
        newlist[i= mylist[i+ data
    return newlist



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Buildin Function
» Range