How to add a list into Python Dictionary
How to add a list into Python Dictionary , In this Post i will create 2 Python List and add the list to an empty dictionary
# Create List years = [2011,2012,2013,2014,2015,2016,2017,2018,2019,2020] durations =[110,111,19,120,130,55,115,99,98,99] #Empty Dictionary time_dict ={} # Add List into Dictionary time_dict["years"] = years time_dict["durations"] = durations # Print the dictionary movie_dict time_dict