#๐Ÿ”’ Syntax Error

20 messages ยท Page 1 of 1 (latest)

formal elk
#

hai im a veryvery newbie to coding i tried to run a very simple code :

b = 2
print(a+b)```

and when i try to run it. it give me a syntax error..
do i need to do something in my files?
eternal falconBOT
#

@formal elk

Python help channel opened

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.

meager ivy
#

exit() and then try running it

formal elk
meager ivy
#

where exactly are you running the code?

formal elk
#

im using vs code and im running it in the terminal

meager ivy
#

okay, open a new terminal, and then try running it

shell locust
#

make sure you save it. VS Code doesn't automatically update what's running without saving

meager ivy
formal elk
#

tysm

meager ivy
#

for the record, you were within python's interactive shell

formal elk
#

sorry i started practicing code today i dont really know what im doing ๐Ÿ˜ญ

meager ivy
#

it's fine

formal elk
#

tyy

meager ivy
#

you can go ahead and !close this

formal elk
#

!close

eternal falconBOT
#
Python help channel closed with !close

This help channel has been closed. 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.