B
B
bonapart2282020-10-26 20:38:29
Python
bonapart228, 2020-10-26 20:38:29

How to fix SyntaxError: invalid syntax File "", line 1" error?

Firework. I am using VS.

When I try to compile the code I get the following error

File "", line 1
& C:/Users/fbono/AppData/Local/Programs/Python/Python39/python.exe e:/CodeWORK/ada.py
^
SyntaxError: invalid syntax


The funny thing is, if I restart the VS, then no errors are observed, after a few minutes the error resumes, only restarting the VS helps.
Tried reinstalling Python - didn't help.
The code itself is normal, for the test.
a = 24.4
b = '25'
c = 14.2
print (a + int(b) + c)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question