dict1={"a":4,"b":2,"A":6}
print({k.lower():dict1.get(k.lower(),0) + dict1.get(k.upper(),0) for k in dict1.keys()})
I copied this code from a youtube video. I couldn't understand the code properly. Please help me to figure it out. I couldn't understand the purpose of 0 in second line.
k.lower():dict1.get(k.lower(),0)
I'm a beginner in python. kindly help me