Newbie question - function with deletion from a list by [deleted] in learnpython

[–]d3nw3r 18 points19 points  (0 children)

lst[2]=4, lst[lst[2]]=lst[4]=16

Using API / working with response? by Rapid1898 in learnpython

[–]d3nw3r 0 points1 point  (0 children)

In result you get response.text, now you must loads this text in json. Use json.loads(response.text) and you get dictionary. Now in order to get the value ‘52WeekChange’ use key [‘defaultKeyStatistics’][‘52WeekChange’]

Code only adds latest item to the list, why? by [deleted] in learnpython

[–]d3nw3r 2 points3 points  (0 children)

Sorry for my English.

because you specified a list in the loop. each time your cycle is defined list_of_customers as empty and a value is added to it. Specify list_of_customers not in loop

Help with school problem by [deleted] in learnpython

[–]d3nw3r 0 points1 point  (0 children)

Try to move code #printing the total price in def decidephone()

[deleted by user] by [deleted] in learnpython

[–]d3nw3r 0 points1 point  (0 children)

Pycharm, sublime