• Python question of the day

    What would be the output of executing the following code:
    w = 'Python Rocks'
    print(w.find('Python') == False)
     True
     False
     0
     1
    Explanation:
    w.find('Python') return 0 as the substring was found at index 0. The condition 0 == False evaluates to True and True will be printed


    Top 100 python interview questions:






datai analytics