443 season = "Spring"
444 else:
445 season = "Summer"
446 challan_obj = {447 "due_date": challan.due_date,
448 "name": request.user.first_name+request.user.last_name,
449 "roll_no": student.uid,
This dictionary expression binds the same key multiple times. This may lead to unintentional behaviour as the key will always map the last value provided to it. It is recommended to have unique keys.
Here, the key random
is provided twice.
DICT = {
"some": "some",
"random": "random",
"dict": "dict",
"values": "values",
"random": "different",
}
All keys should be unique.
DICT = {
"some": "some",
"dict": "dict",
"values": "values",
"random": "different",
}