Is “The Big If” bugged?


#1

Would you happen to know if “The Big If” is bugged?
ive rewritten my code a bunch and simplified it. its probably something small that im missing but just cant place it.

#Complete the if and elif statements!
def grade_converter(grade):
    if grade >= 90:
        return "A"
    elif grade >= 80:
        return "B"
    elif grade >=70:
        return "C"
    elif grade >= 65:
        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)

it works in the console window but the instructions are giving me an x?


Python: Conditionals and Control Flow 9/15
#2

Please post a link to the exercise. Thanks.


#3

The Big IF


#4

I am having the same issue cant seem to get passed the exercise even though the code is correct


#5

'Fraid it appears to be bugged. I reset and redid the exercise and got an X where I previously had a check mark. My old code was gone, though, and that page opened up with the reset code to begin with, even though I did it a year or more ago.


#6

Yeah i’ve written my code a couple of different ways that seem to work. The only way i can get the box to check is by hitting the solution button after failed attempts…but the solution is identical to the code posted above. I guess it is bugged


#7

So is that the only way to get past this exercise? Waiting for the solution to be given?


#8

That i know of yes. Even if your code works in the console window the instruction will give you an x. If you click the solution button it will write the “correct” code and give you the pass. If you copy the solution code reset the exercise and paste the solution you still get the x. So again i believe its the only way to pass the exercise.


#9

When we get the solution, it may be working code but it too would fail the SCT in this instance since correct code is not being allowed to pass. Get Code bypasses the SCT and lets us proceed to the next lesson.


#10

Hi am facing the same issue with BigIf , I have written multiple possibilities and still am getting an “X” mark in the instructions. :roll_eyes:
Due to this Next lessons are not loading and am stuck !! :triumph:


#11

Hi there. It probably has a bug. Even after it provides the solution, if you reset the exercise and paste the solution it provides, it fails again.

Btw, the solution is:

def grade_converter(grade):
if grade >= 90:
return "A"
elif grade >= 80:
return "B"
elif grade >= 70:
return "C"
elif grade >= 65:
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)


#12

As expected. Switching this to Platform Problems where it might have a better chance of being picked up by the engineers.


#14

My code (in the link) looks alright to me. However, the instructions gave me an X. The code ran properly.


#15

My code prints out A, C, F on the console as required. + There is NO error message, but the left-hand panel still shows incorrect answer so I cannot proceed. Have reset 3 times (which fixed an earlier bug) but no joy. Help?

  • code below -

def grade_converter(grade):
if grade >= 90:
return “A”
elif grade >= 80:
return “B”
elif grade >= 70:
return “C”
elif grade >= 65:
return “D”
else:
return “F”

print grade_converter(92)

print grade_converter(70)

print grade_converter(61)


#16

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