#๐ Superfluous output
25 messages ยท Page 1 of 1 (latest)
@graceful citrus
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.
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
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?
yes its a website that grades my code the way he wants, its for my homework
ok, well, I don't know how it works
probably runs your code and compares the output to what it expected to see ๐คท
yea its supposed to match the expected output
i honestly dont know for this little dot it shows, usually its red because of spacing
but for this i do not know
I suspect it's actually fine. It looks good to me, fwiw.
yea but something is off about it, ill just wait for class
its probably the way ur formatting ur scores for numeric grade, do they have to be floats?
yes they do
they deleting the <5 for it, if there is less than 5 numbers after it will add white space
๐ซก
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.