#๐Ÿ”’ Superfluous output

25 messages ยท Page 1 of 1 (latest)

glad waveBOT
#

@graceful citrus

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.

graceful citrus
#

i dont know whats causing this to say its wrong

#

Display the grades in a properly formatted table

print("\nScore        Numeric Grade    Letter Grade")
print("----------------------------------------------------")
print(f"score 1:        {score1:<5.1f}            {determine_grade(score1)}")
print(f"score 2:        {score2:<5.1f}            {determine_grade(score2)}")
print(f"score 3:        {score3:<5.1f}            {determine_grade(score3)}")
print(f"score 4:        {score4:<5.1f}            {determine_grade(score4)}")
print(f"score 5:        {score5:<5.1f}            {determine_grade(score5)}")
print(f"score 6:        {score6:<5.1f}            {determine_grade(score6)}")
print(f"score 7:        {score7:<5.1f}            {determine_grade(score7)}")
print(f"score 8:        {score8:<5.1f}            {determine_grade(score8)}")
print("----------------------------------------------------")
#

my code for that part

cedar forge
#

couple of questions:

  • did your screenshot come from some automated homework checker?
  • what exactly makes you think it's telling you that something is wrong?
graceful citrus
cedar forge
#

ok, well, I don't know how it works

#

probably runs your code and compares the output to what it expected to see ๐Ÿคท

graceful citrus
#

yea its supposed to match the expected output

cedar forge
#

ok, well, does it?

#

my second question again: what makes you think it's complaining?

graceful citrus
#

i honestly dont know for this little dot it shows, usually its red because of spacing

#

but for this i do not know

cedar forge
#

I suspect it's actually fine. It looks good to me, fwiw.

graceful citrus
#

yea but something is off about it, ill just wait for class

amber vault
#

its probably the way ur formatting ur scores for numeric grade, do they have to be floats?

graceful citrus
#

yes they do

amber vault
#

they deleting the <5 for it, if there is less than 5 numbers after it will add white space

graceful citrus
#

wow

#

thank you so much

#

i didnt realize how simple that was

amber vault
#

๐Ÿซก

glad waveBOT
#
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.