#๐ Code not working, (syntax error on line 1) URGENT
47 messages ยท Page 1 of 1 (latest)
@vale hatch
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
You are running a PowerShell command ("& C:......") at the Python interactive prompt, which expects Python code.
I think you've started an interactive Python and not left it. Try exit() to hopefully get back to a powershell prompt. Then run your & C:..... command.
Likely this is the code runner extension injecting the command into the terminal; but the extension doesn't know the python REPL is active.
tkankiuu, I tried running it on a designed terminal and you were right
program runs as it should now
nah it's the builtin to vscode that does this
Code Runner runs in Output
idk how i managed to run it with the pshell
i don't really have much experience coding
you might've pressed shift + enter or something
Ah. Either way I've tended to avoid the magic buttons.
i was coding on the bus back home
shaky
thanks yall 4 the interest on helping
now I can deliver my homework
yeah I always run by command line
btw you can tell that the python REPL is running because the prompt is >>>
and as you learn, you'll be able to recognize what python errors look like
like the SyntaxError: ...
it stands for Read Evaluate Print Loop
thankss
you put a line of code, it evaluates it, prints a value if applicable, then loops back
you can run it by running python or py with no arguments
that's great, most questions are from beginners ๐
yerp
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ Code not working, (syntax error on line 1) URGENT
