Hi,

If I have a dictionary

params = {"N": 10, "M": 2.0}

how can I use it to define two variables N and M with the corresponding 
values?

This sounds like it should be easy and obvious, say using `eval`?
E.g. extract the keys and values into strings and then use

eval(parse("N=10"))

Is this reasonable?

The use case is to load input parameters for a simulation. Maybe there is a 
better way? 

Thanks,
David.

Reply via email to