• Python question of the day

    What would be the output of executing the following code:
    c = 50 + 50
    print(c in [50, 100, 50.0, 100.0] == True)
     True
     False
     1
     0
    Explanation:
    Comparisons, membership tests, and identity tests, all have the same precedence and have a left-to-right chaining feature. So, True is False == False is evaluated as (True is False) and (False==False) and the result is False


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics