Python Developer Question:

Download Job Interview Questions and Answers PDF

Tell me the use of // operator in Python?

Python Developer Interview Question
Python Developer Interview Question

Answer:

It is a Floor Divisionoperator , which is used for dividing two operands with the result as quotient showing only digits before the decimal point. For instance, 10//5 = 2 and 10.0//5.0 = 2.0.

Download Python Developer Interview Questions And Answers PDF

Previous QuestionNext Question
How to share global variables across modules?Explain me what is the common way for the Flask script to work?