Computer Science, asked by Anonymous, 6 months ago

difference between / and // in Python?(Best answer will get brainiest)​

Answers

Answered by satwikbhat11
0

Answer:

Normal Division : Divides the value on the left by the one on the right. Notice that division results in a floating-point value.

divide=10/3 #Normal Division

print(divide)

OUTPUT : 3.333333333333333

Floor Division : Divides and returns the integer value of the quotient. It neglects the digits after the decimal.

divide=10//3 #Floor Division

print(divide)

Similar questions