I am trying to open a json file to write, but i need to build the file path with combination of variable value + some string
What I tried:
with open(r"c:\csv\{ip}+aws_get_tags.json", "w") as f:
json.dump(ec2_tags, f, indent=4, separators=(',', ': '))
this is erroring out at opening that line.
Can some one let me know what syntax i am missing