1. Can you please make the indentation level to 4 spaces.
2. Please use 'code=python' surrounded by square '[ ]' bracets so that it will be correctly cololur coded and end with '\code' enclosed in the same square brackets. Click on the link below for mode details on code tags
http://www.daniweb.com/forums/misc-explaincode.html?TB_iframe=true&height=400&width=680
OR you can click the link on the right side in the box below called '
Help with Code Tags'
This is what your code should look like:
for c in chartNames:
chartUrl = baseChartUrl+c
hd = extractChart(chartUrl)
writeChart(hd,c)
for key in hd:
if key in chart:
chart[key].append(c)
else:
chart[key] = [c]
3. Please provide hard coded values and to the list / tuple / dictionary & variables and function so that it is executable and gives an output or atleast a traceback