convert list to dictionary python assign same value code example Example: list to dict python with same values fruit_dictionary = dict.fromkeys(fruits, "In stock")