print jsondataaspythonvalue writing json with the dumps(function the json dumps(function (which means "dump string,not "dumps"will translate python value into string of json-formatted data enter the following into the interactive shellpythonvalue {'iscat'true'micecaught' 'name''zophie''felineiq'noneimport json stringofjsondata json dumps(pythonvaluestringofjsondata '{"iscat"true"felineiq"null"micecaught" "name""zophie}the value can only be one of the following basic python data typesdictionarylistintegerfloatstringbooleanor none projectfetching current weather data checking the weather seems fairly trivialopen your web browserclick the address bartype the url to weather website (or search for one and then click the link)wait for the page to loadlook past all the adsand so on actuallythere are lot of boring steps you could skip if you had program that downloaded the weather forecast for the next few days and printed it as plaintext this program uses the requests module from to download data from the web overallthe program does the following reads the requested location from the command line downloads json weather data from openweathermap org converts the string of json data to python data structure prints the weather for today and the next two days so the code will need to do the following join strings in sys argv to get the location call requests get(to download the weather data call json loads(to convert the json data to python data structure print the weather forecast for this projectopen new file editor window and save it as getopen weather py then visit sign up for free account to obtain an api keyalso called an app idwhich for the openweathermap service is string code that looks something like ' aba eyou don' need to pay for this service working with csv files and json data