How can i use a dictionnary
gregory.j.baker at gmail.com
Tue Jan 13 15:56:11 CET 2015
On Tuesday, January 13, 2015 at 2:03:30 AM UTC-7, brice DORA wrote:
> i consume a web service that return a element whose the type is "instance". but this element seem be a dictionary but when i want to use it like a dictionary, i got some errors. so this is the element and please someone can tell me how can i use it. tkanks in advance.
> sISOCode = "CI"
> sName = "CÃ´te D'Ivoire (Ivory Coast)"
> sCapitalCity = "Yamoussoukro"
> sPhoneCode = "225"
> sContinentCode = "AF"
> sCurrencyISOCode = "XOF"
> sCountryFlag = "http://www.oorsprong.org/WebSamples.CountryInfo/Images/CÃ´te D'Ivoire.jpg"
> Languages =
> tLanguage =
> sISOCode = "fr"
> sName = "French"
This data is not a Python dictionary, nor is it a JSON object. You will probably need to code your own conversion function to make it a Python dictionary.
More information about the Python-list