• Python question of the day

    What is the output of 1.0 // 2 if you are using python 3.x or later?

    In python, performs the integer division (does not consider anything after decimal point), by only considering the integer part of the division, even for floating-point numbers. Performing this operation on unsupported types (like lists and strings), will result in a TypeError.

    Top 100 python interview questions:

  • Apply for an intership with Datai Analytics by filling your email, name and phone number