Hi all,
I've had a hard time searching for this answer (Google suggests something different than I'm looking for).
VERY early in my code, I have dicts read in from a JSON file, resulting in:
- MUCH later, I have a string variable called:
project <-- This could be either "AW", "AA", or "MA"
- For example:
project="AW" #<----(for example)
1,20,300,4,5
...instead of the literal string:
"AWfromJSONfile" ?
Thanks much in advance!
CG
I've had a hard time searching for this answer (Google suggests something different than I'm looking for).
VERY early in my code, I have dicts read in from a JSON file, resulting in:
AWfromJSONfile=[1,20,300,4,5] AAfromJSONfile=[50,60,7,8,9] MAfromJSONfile=[300,400,50,60,70]
- MUCH later, I have a string variable called:
project <-- This could be either "AW", "AA", or "MA"
- For example:
project="AW" #<----(for example)
print(project + "fromJSONfile")...how do I get the above print statement to print the contents:
1,20,300,4,5
...instead of the literal string:
"AWfromJSONfile" ?
Thanks much in advance!
CG