• Python question of the day

    What would be the output of executing the following code:
    s = "-4" "\\-2"
    print(len(s))
     5
     6
     7
     SyntaxError
    Explanation:
    Here, the first \ acts as an escape character and hence does not count


    Top 100 python interview questions:


  • python bootcamp 2021
datai analytics