Relative Content

Tag Archive for pythonarrayspython-3.x

issue while updating python array

new = [{‘n’: ‘1234’, ‘indicator’: ‘RSI’}, {‘n’: ‘1234’, ‘indicator’: ‘RSI’}, {‘n’: ‘1234’, ‘indicator’: ‘RSI’}, {‘n’: ‘1234’, ‘indicator’: ‘RSI’}] I am trying to update the above array 0 element only using new[0][‘indicator’]=’HMA’ but after updating when trying to print then below response appears. [{‘n’: ‘1234’, ‘indicator’: ‘HMA’}, {‘n’: ‘1234’, ‘indicator’: ‘HMA’}, {‘n’: ‘1234’, ‘indicator’: ‘HMA’}, {‘n’: […]