• Python question of the day

    What would be the output of executing the following code:
    x, y, z = 2, 2, 2.0
    print((x is y) == (y is z), (x == z) is (y == z))
     True True
     False True
     False False
     True False
    Explanation:


    Top 100 python interview questions:






datai analytics