#🔒 Hi I’m a very new to python.

13 messages · Page 1 of 1 (latest)

limber blade
#

I have a problem with my terminal it keep on repeating my Mac name and folder name every time I tried to run my code? ( I use VScode )

sand cragBOT
#

@limber blade

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.

cosmic olive
#

Hey! That is just the command output. IDEs like Visual Studio print the command that runs the file, it is not par t of your code.

stoic tulip
#

Or if you don't wanna see all those stuff you'll have to run it manually yourself by typing python filename.py in the terminal

icy jay
#

If you mean the stuff left of the command word /usr/local/bin;python3, that is the shell prompt for the shell running in the terminal window. VSCode "types" at that shell to run the command.

#

You can also type in that window to run commands.

#

Like this:

[~]fleet2*> cd ~/tmp/python-discord
/Users/cameron/tmp/python-discord
[~/tmp/python-discord]fleet2*> python3 -c 'print(2)'
2
[~/tmp/python-discord]fleet2*>

My prompt is different to yours, but the idea's the same,

#

@limber blade ^^

limber blade
#

Thx u guys

limber blade
sand cragBOT
#
Python help channel closed for inactivity

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.