My code was working perfectly fine until last week. I am using Python3.5 and Flask '1.0.2'. Flask complained about two lines: response = requests.get(f'http://{node}/get_chain') and response = {'message': f'This transaction will be added to Block {index}'} The error messages are as the following:
response = requests.get(f'http://{node}/get_chain')
^
SyntaxError: invalid syntax
and response = {'message': f'This transaction will be added to Block {index}'} ^ SyntaxError: invalid syntax
I attached more context below as a reference. Does anybody have a clue of what's happening? Thanks a lot!