This is a simple exercise that can be solved in different ways I just don't know why this does not work. I start with a dictionary, then I want to change its keys to an upper case but this throws an error ------ RuntimeError: dictionary changed size during iteration
semana = {"Lunes": 4,
"Martes": 5,
"Miercoles": 5,
"Jueves": 4,
"Viernes": 4,
"Sabado": 4,
"Domingo": 4}
for key, value in semana.items():
semana[key.upper()] = value
del semana[key]