Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
False == False or True would output True as the answer. First, it checks to see if False == False. It does, so it returns True. So now it checks the True or True statement. That returns True, which is the output. Python does == before it does or. Here is a chart of the operator precedence in Python. http://www.mathcs.emory.edu/~valerie/courses/fall10/155/resources/op_precedence.html
27th Nov 2016, 12:52 PM
Henry Riser
Henry Riser - avatar