Nov-14-2018, 03:07 PM
maybe I misunderstood what you want
is that ok:
(Nov-14-2018, 02:53 PM)wardancer84 Wrote: val = [ some comprehension magic]i.e. I thought you want just the values
print(val)
is that ok:
print('\n'.join(['{} = {}'.format(key, value) for key, value in oprions.items()]))in python 3.6+
print('\n'.join([f'{key} = {value}' for key, value in oprions.items()]))
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs