#๐Ÿ”’ Why doesn't it log values smaller than - 33 and larger than 25? (Is my hardware just weak)

23 messages ยท Page 1 of 1 (latest)

strange otterBOT
#

@summer frost

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.

summer frost
#

and here's the input.txt itself

#

I know that there is a line in the input.txt that has a score of -61. namely the line
12 12 12 12 12 12 12 12 6
(a few lines before the end)
and i have confirmed that with this evaluation file
https://paste.pythondiscord.com/Y7ZA

#

But it it does not log any lines that have a score of -61 for some odd reason, why do you think that is?

white swan
#

I doubt it's your pc

summer frost
#

that's a relief, i tried to even split the input file to smaller ones just to check it's not my hardware

#

thank you for the quick response btw appreciate it

fringe aurora
summer frost
#

hmm alright ill see if chatgpt can help with that, ill try

fringe aurora
#

Maybe it'll be able to say something smart, but there are generally no shortcuts here. When programmers don't get the output they want they fire up the debugger and dive in

summer frost
#

gulp

fringe aurora
#

It's a habit you should adopt. Writing the code is only part of the craft

summer frost
#

i should, shouldn't i

#

seems like there's no avoiding it either way, so not like i have a choice, but thank you

#

alright ill try running see where it goes wrong, it's large file so i will report back in a little while

summer frost
#

Oohh okay so that configurations score is actually -65. The file that searches through input.txt, assumed that relationships were symmetrical and thus only scored it -33 (about -65/2). So all that's needs is making it consider both sides of the planetary relationships

fringe aurora
summer frost
#

I as in chatgpt but yes, those are the dangers of not learning to code yourself and braindead asking chatgpt to do it out of laziness

#

much faster than doing it myself tho

strange otterBOT
#
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.