Let us say I have a given range of 0 to 5. I want to be able to create a dictionary that keys are from 0 to 5 and each of the values of the keys are set to False. For example:
Given a range of 5 the dictionary should look:
{
0: False,
1: False,
2: False,
3: False,
4: False
}
Is there a way in Python to create this type of dictionary?