How to I make a deep copy of a dictionary without having to import copy? Python -


given dictionary

db = {'m':[("one",1400,30.0, 20.5,"oil paint","austria"),("three",1430,100.0,102.0,"watercolor","france"),("twenty",1395,50.0,200.0,"tempera","france")],             'p':[("eight",1460, 225.0, 200.0, "fresco","netherlands"),("six",1465,81.0, 127.1, "tempera", "netherlands")],             'v':[("four",1661, 148.0, 257.0,"oil paint", "austria"),("two",1630, 91.0, 77.0, "oil paint","usa")],             'k':[("five",1922,63.8,48.1,"watercolor","usa"),("seven",1950,61.0,61.0,"acrylic paint","usa"),("two",1965,81.3,100.3,"oil paint","united kingdom")],             'c':[("ten",1496,365.0,389.0,"tempera","italy")],             'u':[("nine",1203,182.0, 957.0,"egg tempera","italy"), ("twelve",1200,76.2,101.6,"egg tempera","france")]             } 

how make deep copy of dictionary without having import copy?


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -