Styrow.dev
Question 32 of 45
Python Topic: General medium

Mention the use of // operator in Python?

Question

Mention 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.