skip to Main Content

I’m very new to coding and in my new CS class, my teacher has us use VS Code. However, when she runs items in the Python Terminal, the text behind the cursor looks like:

>>>

while mine looks like

firstlast@macbookair ~ %

It also prints the routing for the file every time I run it:

/usr/local/bin/python3 "/Users/firstlast/Library/CloudStorage/OneDrive-school/CS/8.21
Any idea why this is happening, or how to change it?

I tried following a tutorial online but it got really confusing.. and I really feel like I shouldn’t need an extension I don’t understand to do this.. Any ideas?

2

Answers


    1. She is running the python command then writing code line by line, while you tell Python to run the Python file that is already written.
    2. Visual Studio Code does /usr/local/bin/python to ensure that it’s running the correct version of Python (Some people have more than one version).
    3. The firstlast@device is common across UNIX-like operating systems (Linux, MacOS, FreeBSD, etc..), my Linux-based devices’ terminals are myname@mydevice:~$.

    So just ignore it and happy coding!

    Login or Signup to reply.
  1. "I’m very new to coding"

    Ok cool, world needs more coders.

    "I’d like to remove…"

    STOP

    You are new to coding. That’s fine. We all started somewhere. But your first response is to want to change things you don’t understand? That’s a dangerous proposition.

    Things are the way they are for a reason. Sometimes that reason is "sub-optimal legacy concerns that we can’t fix because reasons". But sometimes there are very, very good reasons.

    You aren’t in a position to know yet which is which. So before you ask how to change something, I recommend first asking why it is the way it is.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search