Assign double (value) to strings in list

You can also use Design Script (Code Block) Dictionary: