Sep-23-2018, 06:17 PM
Thanks, that's brilliant - I have it working now. Just one question though - when I run the program in Terminal, the output I get is this:
{u'city': u'New York', u'age': 30, u'name': u'John'}
I've tried accessing the dictionary using name, age etc. and it works fine, giving the same responses. Just wondered why it might be adding the random 'u's?
I don't think it matters - it's working okay, just curious!
Thanks
Chris
{u'city': u'New York', u'age': 30, u'name': u'John'}
I've tried accessing the dictionary using name, age etc. and it works fine, giving the same responses. Just wondered why it might be adding the random 'u's?
I don't think it matters - it's working okay, just curious!
Thanks
Chris