The Big If - Not Responding to Correct Output


#1

I just wanted to point out a bug where even when the output and program in the Big If is functioning correctly, the question window on the left hand side becomes red and the ‘Up Next’ button doesn’t allow me to click on it. I’ve attached a screenshot of what I mean.


#2

Can you copy paste your code to the forum so i can run it?

exercise url, the url is for me, or anyone else who wants to help to quickly access the lesson


#3
# Complete the if and elif statements!
def grade_converter(grade):
    if grade>=90:
        return "A"
    elif grade>=80 and grade<=89:
        return "B"
    elif grade>=70 and grade<=79:
        return "C"
    elif grade>=65 and grade<=69:
        return "D"
    else:
        return "F"
      
# This should print an "A"      
print grade_converter(92)

# This should print a "C"
print grade_converter(70)

# This should print an "F"
print grade_converter(61)

#4

Even pasting in the correct solution (get code -> copy -> reset -> paste) won’t work, did you make a bug report?


#5

Yep, made it already. I just want to know if there is a way I can continue
to the other exercizes and lessons.


#6

if you submit faulty code (or correct code that isn’t approved :wink: ) enough times, a solution button appears in bottom right of editor (above up next), pressing that and getting the solution does pass the exercise


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.