i have a dict as below:
dict = {'settings': {'start_dt': "'201901'",
'end_dt': "'202104'",
'schema': 'blob'
}}
i would like to achieve the following:
"SET start_dt = '201901';SET end_dt = '202104';SET schema = blob;"
i tried the below but it is not really what i am after
elem = []
for k,v in dictt['settings'].items():
strings = ('SET '+k+' ='+v )
print(str('SET ')+k+' ='+v )
elem.append(strings)
["SET start_dt ='201901'", "SET end_dt ='202104'", 'SET schema =blob']
how can i achieve desired result?