• Python question of the day

    What would be the output of executing the following code:
    k = ('Python' 'Rocks')
    print(k)
     (Python, Rocks)
     ('Python', 'Rocks')
     PythonRocks
     TypeError
    Explanation:
    If you place one string next to another without any operator, they are automatically concatenated by Python. The concatenation operator (+) is implicit in such cases!


    Top 100 python interview questions:






datai analytics