Apr-09-2022, 07:45 AM
Thanks guys,
When I did a python --version it was showing me Python 3.9.7, so the original code should have worked. But I was running the code in VScode, so I guess it was using an earlier version.
In the settings of VSCode, I changed the interpreter from Python3 (which was defaulting to /usr/bin/python3 --version Python 3.8.10) to Python 3.9.7 and then the code ran fine in vscode also.
again, thank you for your help, very much appreciated!
When I did a python --version it was showing me Python 3.9.7, so the original code should have worked. But I was running the code in VScode, so I guess it was using an earlier version.
In the settings of VSCode, I changed the interpreter from Python3 (which was defaulting to /usr/bin/python3 --version Python 3.8.10) to Python 3.9.7 and then the code ran fine in vscode also.
again, thank you for your help, very much appreciated!