Answer the question
In order to leave comments, you need to log in
How to add a symbol to the name of a variable?
I have this piece of code
temp1 = str(res["daily"][0]["temp"]["day"])
temp2 = str(res["daily"][1]["temp"]["day"])
temp3 = str(res["daily"][2]["temp"]["day"])
temp4 = str(res["daily"][3]["temp"]["day"])
temp5 = str(res["daily"][4]["temp"]["day"])
temp6 = str(res["daily"][5]["temp"]["day"])
temp7 = str(res["daily"][6]["temp"]["day"])
temp8 = str(res["daily"][7]["temp"]["day"])
Answer the question
In order to leave comments, you need to log in
4 pieces of similar code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question