2. Create a module MassConversion.py that stores function for mass conversion e.g.,
help(MassConversion) displays
2. Create a module MassConversion.py that stores function for mass conversion e.g., Read More »
# Code D = {‘a’:1, ‘b’:2, ‘c’:3} If we try to call with a non-existing key, python will raise an error If we try to assign to a nonexistent key, a new key:value pair will be added to the dictionary e.g. print(D[‘d’]) # raises error D[‘d’] = ‘spam’ print(D) # {‘a’: 1, ‘b’: 2, ‘c’: