Default means when I type "python" at command line, v3 is used and not v2.
Your solution is most welcome. Your solution may be better than mine. Thanks for the help!elParaguayo wrote: ↑Wed Aug 16, 2017 10:56 amEDIT: Gah - by the time I'd managed to type a nice dictionary comprehension you'd found the answer!
Code: Select all
dict_list = [{'feature1': f1, 'feature2': f2, 'feature3': f3} for f1, f2, f3 in zip(feature1_list, feature2_list, feature3_list)]