Remaining values are ignored. Constructs a dictionary from the given sequence. The sequence must contain hashable objects which are used as keys. The values are all set to value. Multiple keys are silently ignored.
Keys become values and vice versa.
Note that no exception is raised if the values are not unique. If a sequence indices is given, the indices are read from it. This makes very nifty constructions possible and extracting items from another sequence becomes a piece of cake. You'll soon love this little function. Order is preserved.