#๐Ÿ”’ Python Help

73 messages ยท Page 1 of 1 (latest)

tropic galleonBOT
#

@covert flint

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.

covert flint
#

can i have some help

#

i keep getting syntaxes

hoary crypt
# covert flint i keep getting syntaxes

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.

covert flint
#

my codes too big

hoary crypt
#

You can't share files. But you can share code via pastebin

#

!pastebin instructions below

tropic galleonBOT
#
Pasting large amounts of code

If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/

After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

covert flint
#

what-

#

im confused

#

i dont know where the syntax is but there is one

hoary crypt
#

!traceback looks like below

tropic galleonBOT
#
Traceback

Please provide the full traceback for your exception in order to help us identify your issue.
While the last line of the error message tells us what kind of error you got,
the full traceback will tell us which line, and other critical information to solve your problem.
Please avoid screenshots so we can copy and paste parts of the message.

A full traceback could look like:

Traceback (most recent call last):
  File "my_file.py", line 5, in <module>
    add_three("6")
  File "my_file.py", line 2, in add_three
    a = num + 3
        ~~~~^~~
TypeError: can only concatenate str (not "int") to str

If the traceback is long, use our pastebin.

covert flint
#

sure

#

========== RESTART: C:/Users/Jamie/Documents/Coded Games/wordle.py ==========
('Attempting to open file at:', 'C:\Users\Jamie\Documents\Coded Games\words.txt')
Loaded 600 words.
('First few words loaded:', ['ABACK', 'ABOUT', 'ACTOR', 'ACUTE', 'ADOBE', 'ADOPT', 'ADULT', 'AFTER', 'AGAIN', 'AGENT'])

#

i think this?

hoary crypt
#

!code format instructions below

tropic galleonBOT
#
Formatting code on Discord

Here's how to format Python code on Discord:

```py
print('Hello world!')
```

These are backticks, not quotes. Check this out if you can't find the backtick key.

For long code samples, you can use our pastebin.

covert flint
#

im new to python

hoary crypt
#

It helps making it readable on Discord

covert flint
#

can somene help

covert flint
#

wait a sec

spare galleon
#

!error

covert flint
#

@hoary crypt

hoary crypt
hoary crypt
covert flint
#

idk

hoary crypt
#

like what did you do?

#

What did you click?

covert flint
#

i did run module

hoary crypt
#

hmm

#

What Python version did you install?

covert flint
#

im using older python-

#

and how do i see

hoary crypt
#

Windows Start Menu > Type "Python"

#

Screenshot and share here

covert flint
hoary crypt
#

Python 2.7 is dead

covert flint
#

oh-

hoary crypt
#

Uninstall it and install Python 3.12

covert flint
#

how do i get 3.12

hoary crypt
covert flint
#

kk its installing

hoary crypt
#

And make sure to uninstall Python 2.7

covert flint
#

oki

#

installed

#

what now

#

@hoary crypt

hoary crypt
#

Try running your file again with it

covert flint
#

YAS IT WORKS

#

@hoary crypt

#

i tried py installer

#

it made the app

hoary crypt
#

you can't use input() for pyinstaller

covert flint
#

what???

#

im confused

#

itz new and -

#

i dont understand

#

@hoary crypt

hoary crypt
#

idk. I give up with pyinstaller

#

but it hates input()

covert flint
#

can u remove input 4 me

hoary crypt
#

no

tropic galleonBOT
#
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.