creating dictionary using the keys

#creating a dictionary using the keys
d1=dict.fromkeys((1,7,6,5,8,9),'present')
print(d1)
d1[15]='absent'
print(d1)

Here is what the above code is Doing:
1. We are creating a dictionary using the fromkeys() method.
2. The first argument is a tuple of keys.
3. The second argument is the value that we want to assign to all the keys.
4. We are printing the dictionary.
5. We are adding a new key-value pair to the dictionary.
6. We are printing the dictionary again.