I need to create a dictionary with these keys 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017
and these values 1, 123, 8765, 0987, 182735, 3459, 9, 0, 2 ,835, 874
I already put these values and keys into lists, a list for each.
year = [2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017]
value = [1, 123, 8765, 0987, 182735, 3459, 9, 0, 2 ,835, 874]
I want a diccionary that has key 2007 value 1 , 2008 123 and so.
I've tried dic[key]=value
but it didn't work,
i've tried function fromkeys but it didn't work either. please help!!!!