#๐Ÿ”’ idk what to put in this

30 messages ยท Page 1 of 1 (latest)

calm kite
#

need help ASAP

stone hamletBOT
#

@calm kite

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.

pastel solstice
#

!repl you put python code here not shell command

stone hamletBOT
#
Read-Eval-Print Loop (REPL)

A REPL is an interactive shell where you can execute individual lines of code one at a time, like so:

>>> x = 5
>>> x + 2
7
>>> for i in range(3):
...     print(i)
...
0
1
2
>>>

To enter the REPL, run python (py on Windows) in the command line without any arguments. The >>> or ... at the start of some lines are prompts to enter code, and indicate that you are in the Python REPL. Any other lines show the output of the code.

Trying to execute commands for the command-line (such as pip install xyz) in the REPL will throw an error. To run these commands, exit the REPL first by running exit() and then run the original command.

woeful storm
calm kite
#

what

pastel solstice
#

you should open command prompt/powershell/powershell in Terminal

woeful storm
#

Open a terminal instead of a Python REPL.

pastel solstice
#

not python

calm kite
#

oh

#

i tried

#

in

pastel solstice
#

?

calm kite
#

uhh

#

bro

#

my bad

#

ion code like that

pastel solstice
#

py -m pip install ...

#

replace ... to your package name

calm kite
#

o

#

ale

#

alr

#

ye its installing

#

thank u g

pastel solstice
#

use !close to close the post

calm kite
#

!close

stone hamletBOT
#
Python help channel closed

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.