The Big If (Should something happen in the black preview screen)


#1


https://www.codecademy.com/en/courses/python-beginner-BxUFN/4/1?curriculum_id=4f89dab3d788890003000096


The program says that my code is correct however nothing is being printed onto the preview screen (black screen next to coding area)


Shouldn't it print "Success" or "Success 2"?


def the_flying_circus():
    if 1 + 1 == 2 and 4 >= 4:
        print "Success"
        return True
    elif 3 > 2 or 4 < 6:
        return True
        print "Success 2"
    else:
        print "Success 3"
        return True


#2

a function doesn't get executed unless called, there is no function call in your case, so the function doesn't get executed, so nothing is printed


#3

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