#๐Ÿ”’ "scrolled" = true glitch?

18 messages ยท Page 1 of 1 (latest)

shell cedarBOT
#

@long bane

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.

fleet ermine
#

it says the exact file path of the module/script the error is in, on line 8 even, the part you wrote over with a red marker

#

but if you can't find it, maybe that's because you forgot to save the file after changing it

wheat cape
#

are u in the right file?

#

are you positive

fleet ermine
#

what if you remove the file (put it elsewhere) so it logically should not even be able to run anything -- does the error happen still?

gleaming topaz
#

in this picture it says that the error is in line 8, can you paste the code here?

wheat cape
#

it tells u the full path

fleet ermine
#

... what is under the red marker then?

#

the file is the module

gleaming topaz
#

can you paste the code here

fleet ermine
#
C:\Users\nesfi\Desktop>blah.py
Traceback (most recent call last):
  File "C:\Users\nesfi\Desktop\blah.py", line 1, in <module>
    print("bro check this out:", 0/0)
                                 ~^~
ZeroDivisionError: division by zero

C:\Users\nesfi\Desktop>```
#

blah(.py) is the "module"

wheat cape
#

show us

gleaming topaz
#

unrelated, but here it says that = true is the problem. Booleans have to be capitalized, so it would be = True

shell cedarBOT
#
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.