I run a script with the code to open a file and it returns SyntaxError. The script is an open source script that I want to test.
with open(f"/home/mine/myfoldr/myapp.yml", "r") as file:
The line above returns the following error:
File "./startup.py", line 28
with open(f"/home/mine/myfoldr/myapp.yml", 'r') as file:
^
I just don't understand what does it mean with f" here, after open(f"...). Because normally it will be write something like below, without f.
with open("/home/mine/myfoldr/myapp.yml", "r") as file:
I think its not a typo because other line code in the script also..have the same style f, for example:
print(f"Which section do you want to change?"
f"[Application/Controller/Database]")
fthat is before the file name?