# Python CodeRecipe|FALSEの使い方

Home Python Keywords

# FALSEの例1

Print the result of the comparison "5 is larger than 6":

    print(5 > 6)

# FALSEの定義及び使い方

False関数はブール値です。 比較演算の結果。 False関数は0と同じです (Trueは1) と同じです。

# FALSEの例2

Other comparisons that returns False:

    print(5 > 6)print(4 in [1,2,3])print("hello" is "goodbye")
print(5 == 6)print(5 == 6 or 6 == 7)print(5 == 6 and 6 
    == 7)print("hello" is not "hello")print(not(5 == 5))
    print(3 not in [1,2,3])

Related Pages The True keyword. Read more about comparisons in our Python Operators Tutorial.

Home Python Keywords