Here is an example of what I'm trying to do
profData = []
currentDic = {}
currentDic['name'] = 'Mike'
currentDic['job'] = 'Bartender'
currentDic['company'] = 'Big Bar'
profData.append(currentDic)
currentDic.clear()
currentDic['name'] = 'John'
currentDic['job'] = 'Server'
currentDic['company'] = 'Red Robin'
profData.append(currentDic)
currentDic.clear()
print(profData)
print(currentDic)
And for some reason I'm getting this result
[{}, {}]
{}
I want to re-use currentDic over and over to insert dictionaries into the profData list. Any thoughts?