#๐Ÿ”’ Please help

50 messages ยท Page 1 of 1 (latest)

rocky pathBOT
#

@shadow furnace

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.

lapis belfry
#

300 lines of code with no explanation of what you are trying to do or expected outcome. Not even a description of the error.

shadow furnace
untold obsidian
#

I aint reading all that

nova aspen
#

im not sure bc i never used test cases yet but it looks like you have an extra newline at the start of the code or something

nova aspen
#

the one that runs. i didnt read it yet

#

it may be part of your modules

#

point is you get an empty line for no reason it seems like

shadow furnace
#

yea so its supposed to apparently output

>move from...

but it is instead outputting:

> > move from...

nova aspen
#

whats the input?

nova aspen
shadow furnace
#

the input would be moveto 1 1

torpid basin
#

the first > comes from the input I'm pretty sure

shadow furnace
#

yea so this is actually how it looks, im super confused by the testcase since the output doesnt actually have "> "\

#

only the input

torpid basin
#

Can you show both the "your output" and "expected" tabs?

shadow furnace
#

yes

nova aspen
#

did the input have a leading enter or something?

torpid basin
#

I guess you're supposed to print a blank line for an empty input

#

Try doing that?

nova aspen
torpid basin
#

true...

nova aspen
#

it feels like the input is triggered twice but why would it do that

shadow furnace
#

or are u just saying thats what the code's doing

nova aspen
shadow furnace
#

yea the code is printing invalid command when an empty string is entered

#

i just assumed it should

shadow furnace
torpid basin
#

Do they give you the input used to test it?

shadow furnace
#

nope :(

#

they do give 3 examples tho

#

i will send them in

#

but these arent related to that testcase

torpid basin
#

only one testcase fails like this?

shadow furnace
#

yep

torpid basin
#

as in, there are other testcases which it passes without issues?

shadow furnace
#

yes all 7 other testcases pass

torpid basin
#

huh
at this point I would contact the instructor tbh

shadow furnace
#

yea might just do that...

shadow furnace
#

@torpid basin hey i found the inputs for the testcase

#

okay so apparently its supposed to output an empty line if display journey is inputed before any entry

#

oof

torpid basin
#

Ah

shadow furnace
#

how do i close this threaad

rocky pathBOT
#
Python help channel closed using Discord native close action

This help channel has been closed. 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.