0
why it dosnt print the result
as you can see in the error comment the file is written https://code.sololearn.com/cAFklhLStzl9/?ref=app https://code.sololearn.com/cAFklhLStzl9/?ref=app
4 odpowiedzi
+ 2
use this
res=json.loads(data)
since data is a variable you don't have to open it.
+ 1
Json.load is used to read json from a file while json.loads is to used to read json from a string, and in your case since you have stored the json data as a string in data variable hence you have to use json.loads
0
thanks my friend
are you can tell me about the difference between load &loads
0
thanks👍