#๐Ÿ”’ Code runs but output does not match expected result

28 messages ยท Page 1 of 1 (latest)

austere cairnBOT
#

@dim flicker

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.

frail gull
#

!paste the code

austere cairnBOT
#
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.

frail gull
#

Don't paste files.

#

Use the pastebin above to paste it as text

dim flicker
#

I have the code in paste.bin but how to send here?

frail gull
#

Paste the link

dim flicker
#

thjis?

frail gull
#

Yup, that worked. Now, explain your problem?

#

(this is a lot of code, so try to narrow it down)

dim flicker
#

So this code runs and the output is pretty close to my expected output, but there are some differences

#

I am missing a few lines too it seems but i can't pick up any errors on my end cause not only is there not enough info to go on, i can't veru fy what i am doing wrong either

#

My course instructor is an ass, everyone in the class is struggling particularly cause we don't even know what we're doing weong anymore

dim flicker
frail gull
dim flicker
#

Okay

dim flicker
#

Is my issue in heapbubbling ?

surreal blade
#

that's too many text that should be in separate files... for easy debugging.. ever heard of OOP?

dim flicker
frail gull
#

Looking at the first few lines... your output is almost correct except it's missing the red lines. Do you know what the red lines represent?

frail gull
austere cairnBOT
#
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.