Does anyone know why python is treating 'from' as a SyntaxError? The keyword from is part of the parameters. I can request the data from Postman, but its not working on my VScode.
Please help.
CodePudding user response:
from is a keyword (from foo import bar, e.g.), so you can't use it as an identifier as this call to dict attempts. You can still use it as a key; you just need a dict display instead.
params = {'count': count, 'from': '2022-01-26', ...}

