Python Developer Question:
Download Questions PDF

Tell me the use of // operator in Python?

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?